Get-WssMsoGroup
Get-WssMsoGroup
Gets security groups.
Syntax
Parameter Set: Default
Get-WssMsoGroup [[-MsoId] <String> ] [ <CommonParameters>]
Detailed Description
The Get-WssMsoGroup cmdlet gets security groups. Specify an ID to get a particular security group. The cmdlet gets security groups whether or not they have an assignment to a user group.
Parameters
-MsoId<String>
Specifies an ID for a security group. The cmdlet gets the security group that has the ID that you specify.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
System.String
WssGroupName
Type: System.String
Description: local network account name of group
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get all security groups
This command gets all the security groups.
PS C:\> Get-WssMSOGroup
Example 2: Get a specific security group
This command gets the security group that has the specified ID.
PS C:\> Get-WssMsoGroup -MsoId "70769c52-b6e2-4ef6-8369-3c2a0208da68"