User Profiles
Cheat sheet · https://pcornel.dk/topic.php?topic=2983
Answer
A Windows user profile is the per-user environment containing folders and settings for a signed-in user. It is associated with an account SID but is not the account itself. The profile includes the user directory and a per-user registry hive that becomes HKEY_CURRENT_USER for the session.
Remember
- Account identity and user profile are separate objects.
%USERPROFILE%normally points to the active profile directory.- The user registry hive is loaded for the session and exposed as HKCU.
- Deleting an account and recreating the same name can create a new SID and therefore a different profile association.
- A temporary profile can make a healthy account look “reset.”
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
first logon creates profile → NTUSER.DAT loaded as HKCU → folders
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.
Profile vs account
| Item | Meaning | Boundary |
|---|---|---|
| Account | Security principal/SID | used for authentication/authorization |
| Profile directory | Per-user files | desktop, AppData and user data |
| NTUSER.DAT | Per-user registry hive | loaded as HKCU for session |
| Profile mapping | SID to profile path | ties identity to profile location |
| Temporary profile | Fallback session profile | sign-in may work while normal profile fails |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2983