Local Groups
Cheat sheet · https://pcornel.dk/topic.php?topic=2980
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 accountsGet-LocalGroupMember Administrators— local adminswhoami /all— current user, SID, groups, privilegesnet 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
| Item | Meaning | Boundary |
|---|---|---|
| Group exists | Local group object is present | does not prove user is a member |
| Member listed | Configured membership exists | does not prove old token refreshed |
| Group SID in token | Runtime membership is active | still requires resource ACL to grant access |
| ACL grants group | Resource authorization path exists | deny/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