Pcornel
Windows · Users & Groups

Local Users and Groups

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

Back to the Topic

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 accounts
  • Get-LocalGroupMember Administrators — local admins
  • whoami /all — current user, SID, groups, privileges
  • net 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

ItemMeaningBoundary
Local userMachine account recordnot AD user object
Local groupMachine group recordcan contain eligible domain principals
Membership editConfiguration changeold token may remain stale
ProfileSeparate per-user statenot managed as the same security object
ACLSeparate resource security descriptornot 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

Confirmation

Confirm action

Continue?