List All Local User Groups with Get-LocalGroup
Show every security group on the PC (Administrators, Users, Guests and more) before assigning account permissions.
01Command
$ Get-LocalGroup | Select-Object Name, Description02What it does
Windows decides what an account may do largely through group membership, and before you add a user anywhere it helps to see which groups actually exist on this machine. Get-LocalGroup lists them all with their descriptions — Administrators, Users, Guests, Remote Desktop Users and any custom groups installed by software. Pair it with Get-LocalGroupMember to inspect who is inside a specific group.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Get-LocalGroupMember cmdlet | Microsoft LearnEvidence: Get-LocalGroupMember lists the members of a specific local group, complementing the group listing from Get-LocalGroup.
- Get-LocalGroup cmdlet | Microsoft LearnEvidence: Get-LocalGroup lists the local security groups on the computer, exposing Name and Description.
Last verified: 2026-09-19 · Category: Security & Privacy
06Related solutions
Read the Authenticode signature status and signer of any executable or script in PowerShell.
Understand PowerShell's execution policy scopes and set the one that lets you run your own local scripts without gutting the security model.
Search inside text files and logs with regex, returning file, line number and match.