CmdID

CmdID / PowerShell / Cmdlets / Get

Get-LocalGroup

Gets the local security groups. PowerShell reference

From the PowerShell reference 2 parameters Alias glg

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

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"Identify

Its page in the reference: Get-LocalGroup.

Parameters

2 in the PowerShell reference
-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.