Gets local groups.
Get-Group [[-Name] <String>] [<CommonParameters>]
Gets all local groups or a specific group by its name.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name of the group to return. | false | false |
System.DirectoryServices.AccountManagement.GroupPrincipal.
Get-Group
Demonstrates how to get all local groups.
Get-Group -Name RebelAlliance
Demonstrates how to get a specific group.