Qué vas a conseguir
Resolver el ticket "he encendido el portátil y no está nada: ni mi escritorio ni mis archivos". Sabrás distinguir un perfil temporal de un perfil dañado, arreglar el registro sin perder datos, crear un perfil nuevo con los archivos del usuario cuando el viejo no tiene arreglo y comprobar que OneDrive protege sus carpetas para que la próxima vez sea un susto de cinco minutos.
Antes de empezar
- Una cuenta con administrador local en el equipo (la de soporte o la contraseña de LAPS) distinta de la del usuario: mientras su sesión esté abierta, su perfil no se puede tocar.
- El nombre del equipo y del usuario. En esta guía,
PC-0412yCONTOSO\lmartin(Laura Martín). - Espacio para una copia de seguridad de la carpeta del perfil antes de cambiar nada.
- Veinte minutos con el usuario fuera del equipo.
1. Reconocer un perfil temporal
Los síntomas: fondo de pantalla por defecto, escritorio vacío, Outlook pide configurarse desde cero y, en la esquina, el aviso "No podemos iniciar sesión en tu cuenta. A menudo este problema se puede solucionar cerrando la sesión y volviendo a iniciarla". Ese aviso dice algo más: lo que el usuario guarde en esa sesión se pierde al cerrarla.
Con el usuario todavía conectado, una comprobación de diez segundos:
$env:USERPROFILEC:\Users\TEMPwhoami /userUser Name SID=============== ==============================================contoso\lmartin S-1-5-21-1004336348-1177238915-682003330-1604C:\Users\TEMP confirma el perfil temporal. Apunta el SID: es el nombre de su clave en el registro. Pide al usuario que no guarde nada en el escritorio y que, si necesita trabajar, use la web de Outlook y OneDrive mientras lo arreglas.
Un perfil dañado es otro caso: el usuario entra en su carpeta de siempre, pero el menú Inicio no abre, la configuración no se guarda o aparece "El servicio Servicio de perfiles de usuario no pudo iniciar sesión. No se puede cargar el perfil de usuario" y ni siquiera llega al escritorio. El diagnóstico empieza igual.
2. Diagnóstico: los eventos del servicio de perfiles
En el Visor de eventos › Registros de Windows › Aplicación, filtra por el origen User Profile Service:
Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='Microsoft-Windows-User Profiles Service'; StartTime=(Get-Date).AddDays(-2)} | Select-Object TimeCreated, Id, LevelDisplayName -First 6TimeCreated Id LevelDisplayName----------- -- ----------------03/11/2026 8:52:14 1515 Advertencia03/11/2026 8:52:14 1511 Advertencia03/11/2026 8:51:58 1500 Error- 1511: Windows no encuentra el perfil local del usuario y le da uno temporal.
- 1515: Windows ha hecho una copia del perfil (la clave
.bak) e intentará usarla en el siguiente inicio de sesión. - 1500: el perfil no se pudo cargar. El texto del evento suele decir qué fichero falló, casi siempre
NTUSER.DAT. - 1530 (el archivo del registro todavía lo usan otras aplicaciones) aparece en muchos equipos sanos: no es la causa.
Para más detalle, Registros de aplicaciones y servicios › Microsoft › Windows › User Profile Service › Operational muestra cada paso de la carga del perfil. Mientras estás aquí, mira también el disco: con C: lleno, Windows no puede cargar NTUSER.DAT y el problema volverá.
Las causas habituales: un apagado forzado mientras se cerraba la sesión o se instalaba una actualización, el disco lleno, un programa que bloquea NTUSER.DAT durante el inicio de sesión, o alguien que borró a mano la carpeta C:\Users\lmartin y dejó su clave en el registro.
3. ProfileList y las claves .bak
Cada perfil del equipo tiene una clave con su SID en HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Dentro, ProfileImagePath dice qué carpeta es la suya. Cuando la carga falla, Windows renombra la clave buena a <SID>.bak y crea otra nueva que apunta a C:\Users\TEMP.
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' | Where-Object PSChildName -like 'S-1-5-21-*' | ForEach-Object { [pscustomobject]@{ Clave = $_.PSChildName; Ruta = $_.GetValue('ProfileImagePath'); State = $_.GetValue('State'); RefCount = $_.GetValue('RefCount') } }Clave Ruta State RefCount----- ---- ----- --------S-1-5-21-1004336348-1177238915-682003330-1604 C:\Users\TEMP 516 1S-1-5-21-1004336348-1177238915-682003330-1604.bak C:\Users\lmartin 0S-1-5-21-1004336348-1177238915-682003330-1105 C:\Users\soporte 0 0Lo que te puedes encontrar:
- Dos claves, una con
.bakque apunta a la carpeta real y otra sin.bakque apunta aTEMP. Es el caso más común y el de esta guía. - Solo la clave
.bak: se arregla igual, quitándole la extensión. - Una sola clave que apunta a una carpeta que ya no existe: alguien borró o renombró la carpeta. Si los datos no están en otro sitio, salta al punto 5.
4. La reparación segura
- El usuario cierra sesión. Reinicia el equipo para que nada tenga cargado su perfil y entra con la cuenta de soporte.
- Haz una copia de lo que vas a tocar: el registro y la carpeta.
reg export "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" C:\Temp\ProfileList-antes.regLa operación se completó correctamente.robocopy C:\Users\lmartin D:\Copias\lmartin-20261103 /E /XJ /R:1 /W:1 /NP /LOG:C:\Temp\copia-lmartin.log- En el Editor del registro (
regedit), con la claveProfileListabierta:
- Comprueba que
C:\Users\lmartinexiste y tiene dentroNTUSER.DAT(es un archivo oculto:Get-ChildItem C:\Users\lmartin -Force). - Reinicia y pide al usuario que inicie sesión.
$env:USERPROFILEdebe devolverC:\Users\lmartin, con su escritorio y su fondo.
Nunca borres la carpeta de un perfil desde el Explorador: deja la clave del registro huérfana y es exactamente lo que provoca un perfil temporal. Para eliminar un perfil, Configuración avanzada del sistema › Perfiles de usuario › Configuración › Eliminar, o Get-CimInstance Win32_UserProfile | Where-Object LocalPath -eq 'C:\Users\lmartin' | Remove-CimInstance, que borra la carpeta y la clave a la vez.
Si después de esto vuelve el perfil temporal, o el evento 1500 sigue señalando NTUSER.DAT, el perfil está dañado de verdad: toca uno nuevo.
5. Un perfil nuevo y los datos del usuario
- Con el usuario fuera y la copia del punto 4 hecha, renombra la carpeta vieja a
C:\Users\lmartin.oldy elimina su clave deProfileList(la exportaste antes). - El usuario inicia sesión: Windows crea un perfil limpio en
C:\Users\lmartin. Que cierre sesión otra vez para copiar sin archivos abiertos. - Copia solo los datos, no la configuración rota:
$viejo = 'C:\Users\lmartin.old'; $nuevo = 'C:\Users\lmartin'foreach ($c in 'Desktop','Documents','Downloads','Pictures','Favorites') { robocopy "$viejo\$c" "$nuevo\$c" /E /XJ /R:1 /W:1 /NP /LOG+:C:\Temp\migracion-lmartin.log }robocopy "$viejo\AppData\Roaming\Microsoft\Signatures" "$nuevo\AppData\Roaming\Microsoft\Signatures" /E /R:1 /W:1/XJevita los puntos de unión del perfil, que hacen que robocopy entre en bucle.- Robocopy copia por defecto datos, atributos y fechas, no permisos: los archivos heredan los de la carpeta nueva y el usuario puede abrirlos.
- No copies
NTUSER.DATniAppDataentero: ahí estaba lo que se rompió. Las firmas de Outlook sí (están enSignatures). Los favoritos de Edge y la configuración de Office vuelven al iniciar sesión con la cuenta de trabajo.
- Guarda
lmartin.olddos semanas y bórrala cuando el usuario confirme que tiene todo.
6. OneDrive: la copia de seguridad de carpetas
Si la copia de seguridad de carpetas de OneDrive (Known Folder Move) estaba activa, el Escritorio, Documentos e Imágenes viven en OneDrive y el perfil nuevo solo necesita volver a iniciar sesión en OneDrive. Compruébalo antes de copiar nada:
[Environment]::GetFolderPath('Desktop')C:\Users\lmartin\OneDrive - Contoso\Desktop[Environment]::GetFolderPath('MyDocuments')C:\Users\lmartin\OneDrive - Contoso\DocumentsSi la ruta está dentro de OneDrive - Contoso, esas carpetas están protegidas. Si devuelve C:\Users\lmartin\Desktop, no lo están. El usuario lo ve en el icono de la nube › Configuración › Sincronizar y hacer copia de seguridad › Administrar copia de seguridad.
Con Archivos a petición, muchos archivos de lmartin.old\OneDrive - Contoso son solo marcadores sin contenido descargado. No los copies con robocopy: se recuperan iniciando sesión en OneDrive o desde la web.
7. Que no se repita
- OneDrive para todos: la directiva Mover de forma silenciosa las carpetas conocidas de Windows a OneDrive, por GPO o Intune, convierte este ticket en "inicia sesión en OneDrive y espera".
- Disco: una alerta cuando
C:baja del 10 % libre. La guía de diagnóstico básico de Windows tiene la comprobación. - Apagados: explica al usuario que no mantenga pulsado el botón mientras pone "Cerrando sesión" o "Instalando actualizaciones".
- En soporte: los perfiles se eliminan con el método del punto 4, nunca borrando la carpeta.
8. El ticket: "he entrado y no tengo nada"
Lunes, 9:05. Laura Martín llama: escritorio vacío, Outlook pidiendo configurarse, sus documentos han desaparecido.
$env:USERPROFILE=C:\Users\TEMP: perfil temporal. Le pides que no guarde nada y que trabaje en la web un rato.- Eventos 1511 y 1515 de esta mañana y un apagado forzado el viernes (Kernel-Power 41 en el registro Sistema). Disco con 40 GB libres.
- En
ProfileList, su clave.bakapunta aC:\Users\lmartiny la otra aTEMP. - Cierra sesión, reinicias, copia del registro y de la carpeta, borras la clave de
TEMP, quitas.bak,StateyRefCounta 0. Reinicio. - Laura entra con su escritorio. Su Escritorio apuntaba a
C:\Users\lmartin\Desktop: abres otro ticket para activar la copia de seguridad de OneDrive en su equipo.
En el ticket: SID, eventos, caso de ProfileList, cambios hechos, dónde está la copia y la comprobación final.
Siguientes pasos
- La guía de diagnóstico básico de un equipo lento o con errores es la primera de este tema: disco, eventos, integridad del sistema e Intune.
- En el Nivel 2, las unidades de red con preferencias de GPO explica qué se aplica en cada inicio de sesión y por qué un perfil nuevo tarda en tener sus unidades.
¿Falta algo o en tu entorno es distinto? Escríbeme y lo corrijo.
What you'll get
Solving the ticket "I turned my laptop on and everything is gone: my desktop and my files". You will tell a temporary profile from a corrupted one, fix the registry without losing data, build a new profile with the user's files when the old one cannot be saved, and check that OneDrive protects their folders so next time it is a five-minute scare.
Before you start
- An account with local administrator rights on the device (the support account or the LAPS password), not the user's: while their session is open, their profile cannot be touched.
- The device and user names. In this guide,
PC-0412andCONTOSO\lmartin(Laura Martín). - Space for a backup of the profile folder before you change anything.
- Twenty minutes with the user away from the device.
1. Spotting a temporary profile
The symptoms: default wallpaper, empty desktop, Outlook asks to be set up from scratch and, in the corner, the notice "We can't sign in to your account. This problem can often be fixed by signing out of your account, then signing back in". The notice says something else too: whatever the user saves in that session is lost when they sign out.
With the user still signed in, a ten-second check:
$env:USERPROFILEC:\Users\TEMPwhoami /userUser Name SID=============== ==============================================contoso\lmartin S-1-5-21-1004336348-1177238915-682003330-1604C:\Users\TEMP confirms the temporary profile. Note the SID: it is the name of their key in the registry. Ask the user not to save anything on the desktop and, if they need to work, to use Outlook on the web and OneDrive while you fix it.
A corrupted profile is a different case: the user lands in their usual folder, but the Start menu won't open, settings are not saved, or they see "The User Profile Service failed the sign-in. User profile cannot be loaded" and never reach the desktop. The diagnosis starts the same way.
2. Diagnosis: the User Profile Service events
In Event Viewer › Windows Logs › Application, filter on the User Profile Service source:
Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='Microsoft-Windows-User Profiles Service'; StartTime=(Get-Date).AddDays(-2)} | Select-Object TimeCreated, Id, LevelDisplayName -First 6TimeCreated Id LevelDisplayName----------- -- ----------------03/11/2026 8:52:14 1515 Warning03/11/2026 8:52:14 1511 Warning03/11/2026 8:51:58 1500 Error- 1511: Windows cannot find the user's local profile and gives them a temporary one.
- 1515: Windows has backed up the profile (the
.bakkey) and will try to use it at the next sign-in. - 1500: the profile could not be loaded. The event text usually names the file that failed, nearly always
NTUSER.DAT. - 1530 (registry file is still in use by other applications) shows up on plenty of healthy devices: it is not the cause.
For more detail, Applications and Services Logs › Microsoft › Windows › User Profile Service › Operational shows every step of the profile load. While you are there, check the disk too: with C: full, Windows cannot load NTUSER.DAT and the problem will come back.
The usual causes: a forced shutdown while the session was signing out or an update was installing, a full disk, a program locking NTUSER.DAT during sign-in, or someone who deleted the C:\Users\lmartin folder by hand and left its key in the registry.
3. ProfileList and the .bak keys
Every profile on the device has a key named after its SID in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Inside, ProfileImagePath says which folder is theirs. When loading fails, Windows renames the good key to <SID>.bak and creates a new one pointing to C:\Users\TEMP.
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' | Where-Object PSChildName -like 'S-1-5-21-*' | ForEach-Object { [pscustomobject]@{ Key = $_.PSChildName; Path = $_.GetValue('ProfileImagePath'); State = $_.GetValue('State'); RefCount = $_.GetValue('RefCount') } }Key Path State RefCount--- ---- ----- --------S-1-5-21-1004336348-1177238915-682003330-1604 C:\Users\TEMP 516 1S-1-5-21-1004336348-1177238915-682003330-1604.bak C:\Users\lmartin 0S-1-5-21-1004336348-1177238915-682003330-1105 C:\Users\support 0 0What you may find:
- Two keys, one with
.bakpointing to the real folder and one without.bakpointing toTEMP. It is the most common case and the one in this guide. - Only the
.bakkey: fixed the same way, by removing the extension. - A single key pointing to a folder that no longer exists: someone deleted or renamed the folder. If the data is not somewhere else, jump to step 5.
4. The safe fix
- The user signs out. Restart the device so nothing has their profile loaded, and sign in with the support account.
- Back up what you are going to touch: the registry and the folder.
reg export "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" C:\Temp\ProfileList-before.regThe operation completed successfully.robocopy C:\Users\lmartin D:\Backups\lmartin-20261103 /E /XJ /R:1 /W:1 /NP /LOG:C:\Temp\backup-lmartin.log- In Registry Editor (
regedit), with theProfileListkey open:
- Check that
C:\Users\lmartinexists and containsNTUSER.DAT(it is a hidden file:Get-ChildItem C:\Users\lmartin -Force). - Restart and ask the user to sign in.
$env:USERPROFILEshould returnC:\Users\lmartin, with their desktop and wallpaper.
Never delete a profile folder from File Explorer: it leaves the registry key orphaned, which is exactly what causes a temporary profile. To remove a profile, Advanced system settings › User Profiles › Settings › Delete, or Get-CimInstance Win32_UserProfile | Where-Object LocalPath -eq 'C:\Users\lmartin' | Remove-CimInstance, which removes the folder and the key together.
If the temporary profile comes back after this, or event 1500 still points at NTUSER.DAT, the profile is genuinely corrupted: time for a new one.
5. A new profile and the user's data
- With the user signed out and the backup from step 4 done, rename the old folder to
C:\Users\lmartin.oldand delete itsProfileListkey (you exported it earlier). - The user signs in: Windows creates a clean profile in
C:\Users\lmartin. Have them sign out again so you copy with no files open. - Copy only the data, not the broken settings:
$old = 'C:\Users\lmartin.old'; $new = 'C:\Users\lmartin'foreach ($f in 'Desktop','Documents','Downloads','Pictures','Favorites') { robocopy "$old\$f" "$new\$f" /E /XJ /R:1 /W:1 /NP /LOG+:C:\Temp\migration-lmartin.log }robocopy "$old\AppData\Roaming\Microsoft\Signatures" "$new\AppData\Roaming\Microsoft\Signatures" /E /R:1 /W:1/XJskips the profile's junction points, which send robocopy into a loop.- By default robocopy copies data, attributes and timestamps, not permissions: the files inherit those of the new folder and the user can open them.
- Do not copy
NTUSER.DATor the whole ofAppData: that is where the breakage was. Outlook signatures, yes (they live inSignatures). Edge favourites and Office settings come back when the user signs in with their work account.
- Keep
lmartin.oldfor two weeks and delete it once the user confirms they have everything.
6. OneDrive: folder backup
If OneDrive folder backup (Known Folder Move) was on, Desktop, Documents and Pictures live in OneDrive and the new profile only needs to sign back in to OneDrive. Check before copying anything:
[Environment]::GetFolderPath('Desktop')C:\Users\lmartin\OneDrive - Contoso\Desktop[Environment]::GetFolderPath('MyDocuments')C:\Users\lmartin\OneDrive - Contoso\DocumentsIf the path is inside OneDrive - Contoso, those folders are protected. If it returns C:\Users\lmartin\Desktop, they are not. The user can see it from the cloud icon › Settings › Sync and back up › Manage back up.
With Files On-Demand, many files in lmartin.old\OneDrive - Contoso are only placeholders with no downloaded content. Do not copy them with robocopy: they come back by signing in to OneDrive or from the web.
7. Stopping it happening again
- OneDrive for everyone: the policy Silently move Windows known folders to OneDrive, through GPO or Intune, turns this ticket into "sign in to OneDrive and wait".
- Disk: an alert when
C:drops below 10% free. The basic Windows diagnosis guide has the check. - Shutdowns: explain to the user not to hold the power button while the screen says "Signing out" or "Installing updates".
- In support: profiles are removed with the method in step 4, never by deleting the folder.
8. The ticket: "I've signed in and I have nothing"
Monday, 9:05. Laura Martín calls: empty desktop, Outlook asking to be set up, her documents gone.
$env:USERPROFILE=C:\Users\TEMP: temporary profile. You ask her not to save anything and to work on the web for a while.- Events 1511 and 1515 from this morning and a forced shutdown on Friday (Kernel-Power 41 in the System log). Disk with 40 GB free.
- In
ProfileList, her.bakkey points toC:\Users\lmartinand the other toTEMP. - She signs out, you restart, back up the registry and the folder, delete the
TEMPkey, remove.bak, setStateandRefCountto 0. Restart. - Laura signs in to her own desktop. Her Desktop pointed to
C:\Users\lmartin\Desktop: you open another ticket to turn on OneDrive folder backup on her device.
In the ticket: SID, events, which ProfileList case, changes made, where the backup is and the final check.
Next steps
- The guide on basic diagnosis of a slow device or one with errors is the first in this topic: disk, events, system integrity and Intune.
- At Level 2, network drives with GPO preferences explains what is applied at each sign-in and why a new profile takes a while to get its drives.
Is something missing, or different in your environment? Get in touch and I'll fix it.
Tech Career Lab · newsletter
¿Te ha servido? Cada dos semanas envío una idea práctica para perfiles IT: LinkedIn, proyectos, networking y procesos de selección.Found this useful? Every two weeks I send one practical idea for IT professionals: LinkedIn, projects, networking and hiring processes.
Apúntate y llévate las 33 ideasSign up and get the 33 ideas →