Get-WssUserGroup

Gets user groups.

Syntax

Get-WssUserGroup []
Get-WssUserGroup
   [-Name <String>]
   [<CommonParameters>]
Get-WssUserGroup
   [-Sid <String>]
   [<CommonParameters>]

Description

The Get-WssUserGroup cmdlet gets Windows Server Essentials user groups. If you do not specify the name or security identifier (SID) of a group, the cmdlet gets all user groups.

Examples

Example 1: Get a user group by specifying a name

PS C:\> Get-WssUserGroup -Name "Support"

This command gets the user group named Support.

1:

PS C:\>

Parameters

-Name

Specifies a name. The cmdlet gets the user group that has the name that you specify.

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

-Sid

Specifies a SID. The cmdlet gets the user group that has the SID that you specify.

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

Outputs

Microsoft.WindowsServerSolutions.Groups.Group