Get-WssMsoGroup

Gets security groups.

Syntax

Get-WssMsoGroup
   [[-MsoId] <String>]
   [<CommonParameters>]

Description

The Get-WssMsoGroup cmdlet gets aad_1 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.

Examples

Example 1: Get all security groups

PS C:\> Get-WssMSOGroup
LocalGroupName : Admins

Description    :

IdentityType   : SecurityGroup

ObjectId       : 70769c52-b6e2-4ef6-8369-3c2a0208da68

PrincipleName  :

DisplayName    : Administrators


LocalGroupName : All Employees

Description    :

IdentityType   : SecurityGroup

ObjectId       : d77e9419-2e1f-4080-ae7c-9b97c6caa681

PrincipleName  :

DisplayName    : All Employees


LocalGroupName :

Description    :

IdentityType   : SecurityGroup

ObjectId       : 77378d14-80ab-48fe-a2d4-e610b2c7eef6

PrincipleName  :

DisplayName    : Other Admins

This command gets all the security groups.

Example 2: Get a specific security group

PS C:\> Get-WssMsoGroup -MsoId "70769c52-b6e2-4ef6-8369-3c2a0208da68"
LocalGroupName :

Description    :

IdentityType   : SecurityGroup

ObjectId       : 70769c52-b6e2-4ef6-8369-3c2a0208da68

PrincipleName  :

DisplayName    : Other Admins

This command gets the security group that has the specified ID.

Parameters

-MsoId

Specifies an ID for a security group. The cmdlet gets the security group that has the ID that you specify.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

WssGroupName Type: System.String Description: local network account name of group