Share via

Does not sync on shutdown, but syncs on user log out

Andre Bunting 20 Reputation points
2026-04-23T18:52:01.8766667+00:00

Can someone explain to me why when my users shutdown their workstations or laptops, it doesnt do a sync to the server on shutdown... But if users click to sign out/log out of their workstations or laptops it does the sync to the server.

I have a windows 2025 server and i have folder replication setup, so why on shutdown it doesnt sync, but on logout it does

Windows for business | Windows Server | Directory services | User logon and profiles
0 comments No comments

2 answers

Sort by: Most helpful
  1. Scott Nguyen 1,470 Reputation points Independent Advisor
    2026-04-23T19:45:43.25+00:00

    Hello. I would say that Windows treats a shutdown as a priority power event that terminates processes quickly to prevent data corruption, whereas a sign-out triggers the synchronization process. By default, the Client-Side Caching service relies on the Logoff event to initiate the final reconciliation of folder redirection data with your Server 2025 shares. To force this behavior during a full power-down, you might need to ensure the Group Policy under User Configuration, Administrative Templates, and Offline Files,...etc is set to Synchronize all offline files first before logging off.

    If you find my answer useful, you can mark it as the "Accepted Answer" so the others can find the solution easily. Your help in supporting the community is much appreciated! Thanks

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-04-23T18:52:16.5566667+00:00

    Folder redirection and Offline Files are designed to sync at user logon/logoff time, not necessarily at OS shutdown. The key difference is that a user sign-out (logoff) reliably triggers the user-profile and Offline Files logoff processing pipeline, while a direct shutdown can bypass or truncate that processing if services are forced to close.

    Relevant behavior from the provided content:

    • The "Network directories to sync at Logon/Logoff time only" Group Policy explicitly ties synchronization to logon/logoff events, not to system shutdown. When this policy is used, the specified network directories are made offline and are synced only at those user session transitions.
    • Logoff processing is part of the user profile lifecycle. The system applies Folder Redirection and Offline Files logic when a user logs on and logs off. At shutdown, Windows has a fixed time (typically 30 seconds per service) to close services; if the system is busy, some operations may not complete before services are forcibly terminated.
    • For services like DFSR and other background components, a forced or fast shutdown can be treated as a “dirty shutdown,” which can interrupt normal sync/cleanup behavior. The documentation notes that services have 30 seconds to shut down, and if they are forcibly closed, it can trigger dirty-shutdown recovery scenarios instead of a clean sync.

    So:

    • On log out/sign out, the user session ends cleanly, Folder Redirection and Offline Files run their configured logoff sync, and the server sees the updates.
    • On shutdown, Windows may not run the same user logoff sync path in full, or it may terminate services before sync completes, especially with fast startup or if the system is under load.

    To get consistent sync behavior, configure and rely on logon/logoff-based policies (such as Folder Redirection plus Offline Files and, if used, "Network directories to sync at Logon/Logoff time only"), and instruct users to sign out before shutting down if immediate sync is required.


    References:

    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.