OPSEC Sanitization Notice: All usernames, SIDs, hostnames, and domain identifiers in this report have been replaced with generic placeholders (
<USER>,S-1-5-21-...,CORP-WKSTN-01).
1. Incident Overview
An enterprise workstation logged in under a hybrid identity environment silently fell back to a Windows Temporary User Profile (C:\Users\TEMP). All Desktop files, Documents, Outlook profiles, and local application preferences disappeared from the active session.
- Environment: Windows 11 Enterprise · Hybrid On-Premises Active Directory + Microsoft Entra ID
- Resolution Time (MTTR): 56 minutes (08:58 – 09:54)
- Data Integrity Outcome: 100% preserved (0% data loss)
2. Diagnostic Triage (PowerShell Evidence)
Before modifying any profile registry keys or file ACLs, the affected session was inspected and safely signed out to release NTUSER.DAT file locks.
# 1. Inspect active terminal sessions on the workstation
quser
# 2. Query registered local profiles via CIM to spot duplicate/temp SIDs
Get-CimInstance -ClassName Win32_UserProfile |
Where-Object { $_.LocalPath -match "Users" } |
Select-Object SID, LocalPath, Special, Loaded |
Format-Table -AutoSize
Root Cause Identification
CIM inspection and NTFS ACL auditing revealed two competing SIDs bound to the same user directory path:
| Identity Source | SID Prefix | Root Cause Behavior |
|---|---|---|
| On-Premises Active Directory | S-1-5-21-<DOMAIN>-<RID> |
Legacy local profile directory owner (C:\Users\<USER>) |
| Microsoft Entra ID (Cloud) | S-1-12-1-<TENANT>-<RID> |
Active sign-in identity blocked from claiming profile path, forcing fallback to C:\Users\TEMP |
3. Safe Remediation Procedure
- Pre-change backup: Verified files created during the temporary session inside
C:\Users\TEMPand archived them safely into a staging directory. - Registry cleanup: Audited
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList, removing stale.bak/ corruptedProfileImagePathcollision entries after backing up the registry hive. - Clean profile re-initialization: Allowed the authoritative Microsoft Entra ID identity (
S-1-12-1-...) to generate a clean profile folderC:\Users\<USER>. - Data restoration & sync verification: Restored archived local files and confirmed full OneDrive / SharePoint synchronization and Outlook profile hydration.
# Export ProfileList registry branch before any remediation edit
reg export "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" C:\Temp\ProfileList_Backup.reg /y
# Verify NTFS ownership and effective ACL on the restored profile
icacls "C:\Users\<USER>"
4. Preventive Controls & SOP Update
- Documented this Dual-SID diagnostic checklist in the internal IT Runbook so L1 engineers never delete
C:\Users\TEMPprior to backing up user-created files. - Standardized pre-migration identity verification checks whenever transitioning endpoints from legacy AD-joined profiles to Entra ID / Intune management.