Get-WssUserGroup

Get-WssUserGroup

Gets user groups.

Syntax

Parameter Set: ByNameParamSet
Get-WssUserGroup [-Name <String> ] [ <CommonParameters>]

Parameter Set: BySidParamSet
Get-WssUserGroup [-Sid <String> ] [ <CommonParameters>]

Detailed 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.

Parameters

-Name<String>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Sid<String>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.WindowsServerSolutions.Groups.Group

Examples

Example 1: Get a user group by specifying a name

This command gets the user group named Support.

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

Add-WssUserGroup

Remove-WssUserGroup

Set-WssUserGroup