SID
Cheat sheet · https://pcornel.dk/topic.php?topic=2984
Answer
A SID is the Windows security identifier for a user, group, computer or other security principal. ACLs and access tokens use SIDs because names can change or be ambiguous; the SID is the canonical identity used by access checks.
Remember
- Windows access checks use SIDs, not friendly names.
- Renaming a principal normally keeps its SID; deleting/recreating it does not.
- Local account SIDs are machine-scoped; domain account SIDs are domain-scoped.
- An unresolved SID in an ACL can be evidence of a deleted/unreachable principal, not automatically corruption.
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
account → SID (domain/machine + RID) → used in tokens and ACLs
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.
SID interpretation
| Item | Meaning | Boundary |
|---|---|---|
| Friendly name | Human-readable label | can be renamed/ambiguous |
| SID | Canonical security identity | used in tokens and ACLs |
| RID | Relative identifier portion | distinguishes principals under a common authority |
| Unresolved SID | Name lookup failed | may reference deleted/offline principal |
| Well-known SID | Standard identity | stable semantic role across systems |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2984