Local Users
Cheat sheet · https://pcornel.dk/topic.php?topic=2979
Answer
A local user is a security principal defined on one Windows computer. Its SID is derived from that computer’s local security authority identity plus a relative identifier, and it is independent of an identically named account on another computer or in a domain.
Remember
- Local accounts are machine-scoped security principals.
PCNAME\userandDOMAIN\userare different identities even whenuseris the same text.- ACLs preserve the SID; renaming a local user does not create a new principal.
- A local account can be disabled, locked or password-expired independently of domain state.
First checks
Get-LocalUser— local accountsGet-LocalGroupMember Administrators— local adminswhoami /all— current user, SID, groups, privilegesnet user <user> /domain— domain account details
Verify in this order
local account in SAM → local authentication → local token
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 account facts
| Item | Meaning | Boundary |
|---|---|---|
| Scope | One Windows computer | not trusted as a domain identity by default |
| Name form | COMPUTER\user | removes ambiguity with domain accounts |
| SID | Machine-specific SID + RID | canonical ACL identity |
| Groups | Local groups | membership contributes to token on that computer |
| Profile | Usually local profile | profile path/state is separate from account identity |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2979