Pcornel
Windows · Users & Groups

Local Users

Cheat sheet · https://pcornel.dk/topic.php?topic=2979

Back to the Topic

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\user and DOMAIN\user are different identities even when user is 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 accounts
  • Get-LocalGroupMember Administrators — local admins
  • whoami /all — current user, SID, groups, privileges
  • net 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

ItemMeaningBoundary
ScopeOne Windows computernot trusted as a domain identity by default
Name formCOMPUTER\userremoves ambiguity with domain accounts
SIDMachine-specific SID + RIDcanonical ACL identity
GroupsLocal groupsmembership contributes to token on that computer
ProfileUsually local profileprofile 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

Confirmation

Confirm action

Continue?