Get-WssMsoAssignedGroup

Gets a security group assigned to a user group.

Syntax

Get-WssMsoAssignedGroup
   [[-WssGroupName] <String>]
   [<CommonParameters>]

Description

The Get-WssMsoAssignedGroup cmdlet gets a aad_1 security group that is assigned to a Windows Server Essentials user group. If you do not specify a user group, the cmdlet gets all the aad_2 security groups. To get security groups that are not assigned to a user group, use the Get-WssMsoGroup cmdlet.

Examples

Example 1: Get all security groups

PS C:\> Get-WssMsoAssignedGroup
LocalGroupName : All Employee
Description    :
IdentityType   : SecurityGroup
ObjectId       : d77e9419-2e1f-4080-ae7c-9b97c6caa681
PrincipleName  :
DisplayName    : All Employees

LocalGroupName : Admins
Description    :
IdentityType   : SecurityGroup
ObjectId       : 77378d14-80ab-48fe-a2d4-e610b2c7eef6
PrincipleName  :
DisplayName    : Administrators

This command gets all the security groups.

Example 2: Get a security group by name

PS C:\> Get-WssMsoAssignedGroup -WssGroupName "Admins"
LocalGroupName : Admins
Description    :
IdentityType   : SecurityGroup
ObjectId       : 77378d14-80ab-48fe-a2d4-e610b2c7eef6
PrincipleName  :
DisplayName    : Administrators

This command gets the security group assigned to the user group named Admins.

1:

PS C:\>

Parameters

-WssGroupName

Specifies the name of a Windows Server Essentials user group. The cmdlet gets the security group that is assigned to the user group 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

Outputs

MSOSecurityGroup[]