Get one or more local security groups.
Syntax Get-Localgroup [[-Name] String[]] [CommonParameters] Get-Localgroup [[-SID] SecurityIdentifier[]] [CommonParameters] Key -name An array of names of security groups to get. Accepts wildcards. -SID An array of security IDs (SIDs) of security groups to get.
You can pipe a string or a SID to this cmdlet.
Get the local security group called 'SecurityGroup64':
PS C:\> Get-LocalGroup -Name "SecurityGroup64"
“Three groups spend other people's money: children, thieves, politicians. All three need supervision” ~Dick Armey
Add-LocalGroupMember - Add members to a local group.
Get-LocalGroup - Get the local security groups.
Remove-LocalGroup
Rename-LocalGroup
Set-Localgroup
New-adUser - Create a new AD user account.
New-LocalUser - Add a local user account.