Local Users and Groups
Cheat sheet · https://pcornel.dk/topic.php?topic=2987
Answer
Local Users and Groups is the Windows management surface for local security principals. It exposes local user accounts, local groups and their membership, allowing administrators to inspect or change machine-scoped identities without confusing them with domain objects.
Remember
- This surface manages local principals, not AD domain users/groups.
- Edition/management surface availability can vary; the underlying local security principals still exist.
- A GUI membership change still requires fresh token context for runtime effect.
- Account/profile/ACL are separate even when managed from nearby Windows tools.
First checks
Get-LocalUser— local accountsGet-LocalGroupMember Administrators— local adminswhoami /all— current user, SID, groups, privilegesnet user <user> /domain— domain account details
Commands
net user- Displays or manages Windows user accounts. With no username it lists local accounts; with a username it displays accoun…
net localgroup- Displays or manages local Windows groups and their membership. It is useful for proving configured local group membersh…
Verify in this order
MMC snap-in → local SAM users and groups
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
Local Users and Groups scope
| Item | Meaning | Boundary |
|---|---|---|
| Local user | Machine account record | not AD user object |
| Local group | Machine group record | can contain eligible domain principals |
| Membership edit | Configuration change | old token may remain stale |
| Profile | Separate per-user state | not managed as the same security object |
| ACL | Separate resource security descriptor | not implied by group UI |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2987