# Users and Groups on This PC

Every Windows PC has its own list of accounts and groups: Get-LocalUser and Get-LocalGroup read them, Get-LocalGroupMember shows who is in a group such as Administrators, and a quick check tells you whether this window runs as administrator; adding an account takes an administrator window, so rehearse it with -WhatIf.

![Cheat sheet for the lesson Users and Groups on This PC: Every Windows PC has its own list of accounts and groups: Get-LocalUser and Get-LocalGroup read them, Get-LocalGroupMember shows who is in a group such as Administrators, and a quick check tells you whether this window runs as administrator…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/05ddcc849b5244969eaa9b1a224a9b7a.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: administrator, get-localgroupmember, get-localuser, local-account, local-group, operating-system, powershell, user-account-control
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-local-users-cheat-sheet
