Pcornel
Windows · Users & Groups

Local Groups

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

Back to the Topic

Answer

A local group is a machine-scoped security principal that contains members and provides a group SID to eligible logon tokens. Permissions and user rights can be granted to the group instead of to each account individually.

Remember

  • Permissions should usually target groups rather than many individual users.
  • Local groups can contain local principals and, on domain-joined systems, domain principals.
  • Membership changes affect newly created tokens; existing processes can continue with the old token.
  • Built-in local groups such as Administrators have well-known security semantics.

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

Get-LocalGroupMember Administrators
Lists the members of the local Administrators group.

Verify in this order

local group → members (local or domain) → included in 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 group troubleshooting

ItemMeaningBoundary
Group existsLocal group object is presentdoes not prove user is a member
Member listedConfigured membership existsdoes not prove old token refreshed
Group SID in tokenRuntime membership is activestill requires resource ACL to grant access
ACL grants groupResource authorization path existsdeny/share/UAC boundaries can still block

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2980

Confirmation

Confirm action

Continue?