ANAVEM
Languagefr
Event ID 1704ErrorWinlogonWindows

Windows Event ID 1704 – Winlogon: User Profile Service Failed

Event ID 1704 indicates the User Profile Service failed to load a user profile, preventing successful user logon and potentially causing profile corruption or access issues.

Emanuel DE ALMEIDAEmanuel DE ALMEIDA
18 March 202612 min read 0
Event ID 1704Winlogon 5 methods 12 min
Event Reference

What This Event Means

Windows Event ID 1704 is generated by the Winlogon process when the User Profile Service encounters a critical error during user profile initialization. This event represents one of the most significant profile-related failures in Windows systems, as it directly impacts a user's ability to access their personalized environment and applications.

The User Profile Service is responsible for loading and unloading user profiles during logon and logoff processes. When Event ID 1704 occurs, it indicates that this service has encountered an unrecoverable error while attempting to establish the user's profile environment. This can manifest as complete logon failures, where users cannot access their accounts, or partial failures where users receive temporary profiles with limited functionality.

The event typically includes detailed information about the specific user account affected and may provide additional context about the nature of the failure. Common scenarios include profile corruption due to improper system shutdowns, disk space exhaustion in profile directories, registry corruption affecting profile settings, or permission issues preventing access to user profile folders.

In enterprise environments, Event ID 1704 can be particularly problematic when it affects multiple users or occurs on critical systems like terminal servers or domain controllers. The event often requires immediate attention to restore user access and prevent data loss or productivity impacts.

Applies to

Windows 10Windows 11Windows Server 2019/2022/2025
Analysis

Possible Causes

  • Corrupted user profile registry entries in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  • Insufficient disk space on the system drive or profile storage location
  • Permission issues on user profile directories preventing read/write access
  • Antivirus software interfering with profile loading processes
  • Network connectivity issues when loading roaming profiles from domain controllers
  • Profile folder corruption due to improper system shutdowns or hardware failures
  • Registry corruption affecting the User Profile Service configuration
  • Conflicting Group Policy settings related to user profiles
  • Damaged user profile template files or missing mandatory profile components
  • System file corruption affecting profile service dependencies
Resolution Methods

Troubleshooting Steps

01

Check Event Viewer for Additional Context

Start by examining the complete event details and related events to understand the scope of the profile failure.

  1. Open Event Viewer by pressing Win + R, typing eventvwr.msc, and pressing Enter
  2. Navigate to Windows LogsSystem
  3. Filter for Event ID 1704 using the filter option in the Actions pane
  4. Double-click the event to view detailed information including the affected user SID
  5. Check for related events around the same time, particularly Event IDs 1500, 1502, and 1511
  6. Use PowerShell to gather comprehensive event data:
    Get-WinEvent -FilterHashtable @{LogName='System'; Id=1704} -MaxEvents 20 | Format-Table TimeCreated, Id, LevelDisplayName, Message -Wrap
  7. Export relevant events for further analysis:
    Get-WinEvent -FilterHashtable @{LogName='System'; Id=1704} | Export-Csv -Path "C:\Temp\Event1704_Analysis.csv" -NoTypeInformation
Pro tip: Look for patterns in the timing of Event ID 1704 occurrences, as they may correlate with system maintenance, updates, or specific user activities.
02

Verify User Profile Registry Integrity

Examine and repair corrupted registry entries in the ProfileList key that may be preventing proper profile loading.

  1. Open Registry Editor as Administrator by pressing Win + R, typing regedit, and pressing Enter
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  3. Look for duplicate SID entries or entries with .bak extensions
  4. Use PowerShell to audit profile registry entries:
    Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" | ForEach-Object { Get-ItemProperty $_.PSPath | Select-Object PSChildName, ProfileImagePath, State }
  5. Identify problematic entries where the ProfileImagePath is missing or incorrect
  6. For corrupted entries, rename the problematic SID key by adding .old to the end
  7. If a .bak version exists, rename it to remove the .bak extension
  8. Restart the system and test user logon
  9. Verify the fix using PowerShell:
    Get-WmiObject -Class Win32_UserProfile | Where-Object {$_.Special -eq $false} | Select-Object LocalPath, SID, Loaded
Warning: Always backup the registry before making changes. Incorrect registry modifications can cause system instability or prevent Windows from starting.
03

Check Disk Space and Profile Directory Permissions

Verify that adequate disk space exists and that proper permissions are set on user profile directories.

  1. Check available disk space on the system drive:
    Get-WmiObject -Class Win32_LogicalDisk | Where-Object {$_.DriveType -eq 3} | Select-Object DeviceID, @{Name="Size(GB)";Expression={[math]::Round($_.Size/1GB,2)}}, @{Name="FreeSpace(GB)";Expression={[math]::Round($_.FreeSpace/1GB,2)}}
  2. Examine user profile directory permissions:
    Get-Acl "C:\Users\*" | Format-Table Path, Owner, AccessToString -Wrap
  3. Navigate to C:\Users in File Explorer and verify that user folders exist and are accessible
  4. Check for profile folders with unusual names or permissions issues
  5. Reset permissions on a problematic user profile folder:
    $ProfilePath = "C:\Users\[USERNAME]"\nicacls $ProfilePath /reset /T /C
  6. Verify the User Profile Service is running:
    Get-Service -Name "ProfSvc" | Select-Object Name, Status, StartType
  7. If the service is stopped, start it:
    Start-Service -Name "ProfSvc"
  8. Monitor disk space usage during profile loading:
    while ($true) { Get-WmiObject -Class Win32_LogicalDisk | Where-Object {$_.DriveType -eq 3} | Select-Object DeviceID, @{Name="FreeSpace(GB)";Expression={[math]::Round($_.FreeSpace/1GB,2)}}; Start-Sleep 30 }
04

Rebuild User Profile Using System Tools

Use Windows built-in tools to rebuild a corrupted user profile while preserving user data.

  1. Create a backup of the user's data before proceeding:
    $SourcePath = "C:\Users\[USERNAME]"\n$BackupPath = "C:\Temp\ProfileBackup_$(Get-Date -Format 'yyyyMMdd_HHmmss')"\nrobocopy $SourcePath $BackupPath /E /COPYALL /R:3 /W:10
  2. Log off the affected user and log on as a local administrator
  3. Open System Properties by pressing Win + R, typing sysdm.cpl, and pressing Enter
  4. Click the Advanced tab, then click Settings under User Profiles
  5. Select the corrupted profile and click Delete
  6. Alternatively, use PowerShell to remove the profile:
    $UserSID = (New-Object System.Security.Principal.NTAccount("[USERNAME]")).Translate([System.Security.Principal.SecurityIdentifier]).Value\nGet-WmiObject -Class Win32_UserProfile | Where-Object {$_.SID -eq $UserSID} | Remove-WmiObject
  7. Remove the profile registry entry:
    Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\$UserSID" -Recurse -Force
  8. Have the user log on again to create a new profile
  9. Restore user data from the backup:
    $NewProfilePath = "C:\Users\[USERNAME]"\nrobocopy $BackupPath $NewProfilePath /E /XD "AppData\Local\Temp" "AppData\Local\Microsoft\Windows\Temporary Internet Files" /R:3 /W:10
Pro tip: Consider using User State Migration Tool (USMT) for enterprise environments to automate profile migration and preserve application settings.
05

Advanced Troubleshooting with Process Monitor and System File Checker

Perform deep system analysis to identify underlying causes of profile service failures.

  1. Download and run Process Monitor (ProcMon) from Microsoft Sysinternals
  2. Set filters to monitor Winlogon.exe and related profile processes:
    # Filter for profile-related processes\nProcess Name contains winlogon\nProcess Name contains userinit\nPath contains ProfileList
  3. Reproduce the logon issue while ProcMon is running
  4. Analyze the captured data for ACCESS DENIED or PATH NOT FOUND errors
  5. Run System File Checker to identify corrupted system files:
    sfc /scannow
  6. Check the SFC log for details:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > C:\Temp\SFC_Results.txt
  7. Run DISM to repair the Windows image if SFC finds issues:
    DISM /Online /Cleanup-Image /RestoreHealth
  8. Check Windows Update history for recent changes:
    Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10
  9. Examine Group Policy settings affecting user profiles:
    gpresult /h C:\Temp\GPResult.html\nInvoke-Item C:\Temp\GPResult.html
  10. Test with a new local user account to isolate domain-related issues:
    net user TestUser P@ssw0rd123 /add\nnet localgroup administrators TestUser /add
Warning: Advanced troubleshooting should only be performed by experienced administrators. Always test changes in a non-production environment first.

Overview

Event ID 1704 from the Winlogon source represents a critical user profile loading failure that occurs during the Windows logon process. This event fires when the User Profile Service encounters an error while attempting to load a user's profile, which can result in users being unable to log on to their accounts or experiencing significant delays during the authentication process.

The event typically appears in the System log and indicates that Windows could not successfully initialize the user profile environment. This failure can stem from various causes including corrupted profile data, insufficient disk space, registry corruption, or permission issues on profile directories. When this event occurs, users may experience temporary profile loads, missing desktop settings, or complete logon failures.

Understanding Event ID 1704 is crucial for system administrators managing Windows environments, as profile-related issues can significantly impact user productivity and system stability. The event often correlates with other profile service events and requires systematic investigation to identify the root cause and implement appropriate remediation strategies.

Frequently Asked Questions

What does Windows Event ID 1704 mean and why does it occur?+
Event ID 1704 indicates that the User Profile Service failed to load a user profile during the Windows logon process. This critical error occurs when Windows cannot successfully initialize the user's profile environment due to various issues such as corrupted registry entries, insufficient disk space, permission problems, or damaged profile folders. The event prevents users from accessing their personalized desktop environment and applications, often resulting in logon failures or temporary profile loads.
How can I identify which user account is affected by Event ID 1704?+
The Event ID 1704 details typically include the Security Identifier (SID) of the affected user account. You can identify the username by using PowerShell to translate the SID: ([System.Security.Principal.SecurityIdentifier]'S-1-5-21-XXXXXXXXX-XXXXXXXXX-XXXXXXXXX-XXXX').Translate([System.Security.Principal.NTAccount]).Value. Additionally, check the event description text which may contain the username directly, and correlate the timing with user logon attempts to narrow down the affected account.
Can Event ID 1704 cause data loss, and how can I prevent it?+
Event ID 1704 itself doesn't directly cause data loss, but the underlying profile corruption that triggers it can potentially lead to data loss if not handled properly. To prevent data loss, always backup user profile folders before attempting repairs, avoid forcefully deleting profiles without proper backup procedures, and implement regular system backups. Use tools like robocopy to create comprehensive backups of user data before performing profile reconstruction or registry modifications.
Why does Event ID 1704 keep recurring after I've fixed the user profile?+
Recurring Event ID 1704 errors often indicate underlying system issues that weren't fully resolved. Common causes include persistent registry corruption, ongoing disk space problems, antivirus interference with profile loading, Group Policy conflicts, or hardware issues affecting the storage subsystem. Investigate system-wide issues using tools like DISM and SFC, check for recent Windows updates that might have introduced conflicts, and monitor system resources during logon processes to identify the root cause.
How does Event ID 1704 differ from other user profile-related events like 1500 or 1502?+
Event ID 1704 represents a critical profile loading failure, while other profile events indicate different stages of the process. Event ID 1500 typically indicates profile service startup issues, Event ID 1502 relates to profile unloading problems, and Event ID 1511 involves profile deletion failures. Event ID 1704 is specifically about the failure to load an existing profile during logon, making it more severe than warning-level events but distinct from service-level failures. Understanding these distinctions helps prioritize troubleshooting efforts and identify the specific component causing profile issues.
Documentation

References (2)

Emanuel DE ALMEIDA
Written by

Emanuel DE ALMEIDA

Senior IT Journalist & Cloud Architect

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...