Remove-SmGroup
Contributors
Suggest changes
Removes an AD group or local group from SnapCenter.
Syntax
Remove-SmGroup [-Group] <SmString> [-Domain] <String>
Detailed Description
Removes an Active Directory group or local group from SnapCenter.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
Group |
Single group or list of groups belonging to the same domain or local host. |
true |
true (ByPropertyName) |
|
Domain |
The domain to which the group belongs to. Local group should skip this parameter. |
false |
true (ByPropertyName) |
Examples
Example 1: Removing a single group
Remove-SmGroup -Group group1 -Domain domain1
Example 2: Removing multiple groups of same domain
Remove-SmGroup -Group group1,group2 -Domain domain1
Example 3: Removing a local group
Remove-SmGroup -Group LocalGroup1