CmdID / PowerShell / Cmdlets / Get
Get-LocalGroup
Gets the local security groups. PowerShell reference
From the PowerShell reference
2 parameters
Alias glg
What it does
Gets the local security groups. The Get-LocalGroup cmdlet gets local security groups in Security Account Manager. This cmdlet gets default built-in groups and local security groups that you create. NOTE: The Microsoft.PowerShell.LocalAccounts module is not available in 32-bit PowerShell on a 64-bit system.
Get-LocalGroup [[-Name] <String[]>] [<CommonParameters>]Get-LocalGroup [[-SID] <SecurityIdentifier[]>] [<CommonParameters>]
Get the Administrators group
Get-LocalGroup -Name "Administrators"IdentifyIts page in the reference: Get-LocalGroup.
Parameters
-NameSpecifies an array of names of security groups that this cmdlet gets. You can use the wildcard character.-SIDSpecifies an array of security IDs (SIDs) of security groups that this cmdlet gets.