User Profile Service Error 1509 During First Sign-In on a New Device

Iris Smith 0 Reputation points
2026-11-25T02:22:03.0566667+00:00

During a user's first sign-in to a newly provisioned workstation, the profile service records event 1509 while copying profile content from the source location. How can I identify the specific file that failed to copy and distinguish path-length, source-file lock, and destination-permission problems?

Windows for business | Windows 365 Enterprise
0 comments No comments

2 answers

Sort by: Most helpful
  1. Hoang Le Huy 2,400 Reputation points Independent Advisor
    2026-11-25T02:57:19.38+00:00

    Hello Iris Smith,

    Event ID 1509 normally records the exact file that the User Profile Service failed to copy, so the first place to check is Event Viewer → Applications and Services Logs → Microsoft → Windows → User Profile Service → Operational. Review the full event details and the paired Event IDs 1508, 1509, and 1511, which typically contain the source path, destination path, and the underlying Win32 error returned by the copy operation.

    The error code is the key to determining the root cause. Errors such as 0x000000CE (ERROR_FILENAME_EXCED_RANGE) indicate a path-length limitation, 0x00000020 (ERROR_SHARING_VIOLATION) usually indicates the source file was locked by another process, and 0x00000005 (ACCESS_DENIED) points to an NTFS permission or ownership problem on the destination profile folder under C:\Users%username%. For permission-related failures, verify ACL inheritance and ensure SYSTEM and Administrators have Full Control on the destination path.

    If the event data is not sufficiently detailed, use Process Monitor (ProcMon) with filters on profsvc.exe and the affected filename during the first sign-in. ProcMon will show the exact file operation failure, including whether the result is NAME TOO LONG, SHARING VIOLATION, or ACCESS DENIED, allowing you to distinguish between path-length, source-lock, and destination-permission issues with certainty.

    If my answer is useful for you, please hit Accept the answer for me please.

    HL.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-25T02:22:25.1533333+00:00

    Use the event details first, then correlate with the User Profile Service logs.

    1. Open Event Viewer and check the Application log:
      • Go to Control Panel > System and Security > Administrative Tools > View event logs.
      • Navigate to Windows Logs > Application.
      • Select Filter Current Log.
      • In Event sources, select User Profiles Service.
      • Review Warning and Error events, especially Event ID 1509.
    2. Identify the exact file from the Event 1509 message:
      • Event 1509 includes both the source path and the destination path for the file that failed to copy.
      • The failed file is the path shown in the event text after “Windows cannot copy file … to location …”.
    3. Distinguish the failure type by the DETAIL text in Event 1509:
      • Path-length problem: DETAIL - The filename or extension is too long.
        • This can occur when the roaming profile path on the server uses a long server name or share name, causing the full destination path to exceed the supported 260 characters.
      • Source-file lock problem: DETAIL - The process cannot access the file because it is being used by another process.
        • This indicates the source file was in use during the copy.
      • Destination-permission problem: DETAIL - Access is denied.
        • This indicates an access or permission problem at the destination.
    4. Correlate with the Operational log to see where profile loading failed:
      • In Event Viewer, go to Applications and Services Logs > Microsoft > Windows > User Profile Service > Operational.
      • Review events that occurred at the same time as the Application log Event 1509 entries.
      • This helps pinpoint where in the profile load or unload process the failure occurred.
    5. If the Application and Operational logs are not enough, enable deeper logging:
      • In Event Viewer, select View > Show Analytic and Debug Logs.
      • Go to Applications and Services Logs > Microsoft > Windows > User Profile Service > Diagnostic.
      • Select Enable Log.
      • Reproduce the first sign-in problem, then review the Diagnostic log.
      • Disable the log after troubleshooting.
    6. If the failed file still is not clear, capture a trace:
      • Sign in with a local administrator account.
      • Reproduce the issue.
      • Stop the trace with:
             logman stop -n RUP -ets
        
      • Export it with:
             Tracerpt <path>\RUP.etl
        
      • Open Summary.txt and Dumpfile.xml and search for fail or failed.
      • This provides the most specific record of what the User Profile Service was doing when the copy failed.

    For the first-sign-in scenario specifically, Event 1509 during profile copy commonly maps to these patterns from the logs:

    • Too long path: long server/share/profile path expansion.
    • File in use: another process has the source file open.
    • Access denied: destination permissions or access checks are blocking the copy.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.