Offline Folders - How to undo?

Posted on 2009-04-19
Last Modified: 2012-06-27
Forgive me if the answer to this is in another question; I could not locate...

I have a laptop running WindowsXP that is used at both my office and at home. I enabled Offline Files while at work and have a couple of network folders (accessed via mapped network drive) synced regularly.

At home I enabled file sharing on my desktop and am able to access from the laptop. Here is the issue: After specifying one of the desktop's folders as "Make Available Offline" and rebooting, I can no longer see any of the desktop's other folders (the ones not specified as "Make Available Offline"). If I reconfigure the laptop to not use Offline Files and reboot, then I am able to access the desktop and all of its folders; however, I can not find a way to "uncheck" the "Make Available Offline" setting for the desktop folder.

Any advice?
Question by:rsorrent
    LVL 1

    Expert Comment

    Try this command to uncheck (turn off) offline files for the share.

    net share name_of_shared_folder /cache:none
    LVL 6

    Expert Comment

    You can disable offline files by simply going to folder options( Control panel-> folder options) then click on the offline fles tab and then uncheck enable offlne files to disable offline files.
    LVL 66

    Expert Comment

    I wouldnt disable them yet. Might be that you are simply canceling the Synchronization Window?

    Start>run>mobsync /logon

    Do the Desktop's files appear?

    Are you set to Synch at logon and logoff?

    Author Comment

    pml ravi: I either get "shared resource does not exist" or I get the syntax of the command; I am sure I am making a fundamental mistake in specifying the share name. Attached is a screenshot of the properties for the shortcut to the shared network resource

    mohd haq: I prefer not to disable sharing

    johnb6767: No luck there
    LVL 66

    Expert Comment

    How are you accessing the Desktop PC? Mapped Drive, UNC, Shortcut?

    Try creating a shortcut to the share using the IP....


    Author Comment

    jonhb: I am accessing via a shortcut to the UNC path. I cannot use the IP as my router dynamically assigns the IP and it is not always the same
    LVL 66

    Expert Comment

    I would be curious to see if you could at least try it for testing purposes....

    If it works, then it is a synchronization error itself, where it sees the desktop as "Offline", and wont connect even though it is connected to the network....

    Do you have the little synchronization icon in the system tray? If so, what does it show when you access it?

    Author Comment

    johnb: Accessing via IP worked. Here is what I also noticed:

    1. Upon booting, when the sync dialog opens to report progress it shows two other shares (from my office) that I have also set to "Work Offline" but not the home desktop. Those two office shares are unavailable so the sync does nothing; however, it is interesting that this home dekstop does not show.

    2. The "sync" icon in the tray is not there

    3. When I am at work, the "sync" icon is in the tray and it shows that the home dekstop has failed to sync.
    LVL 66

    Expert Comment


    reg query "reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares" /s

    Post the results please...
    LVL 66

    Expert Comment


    reg query "hkcu\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares" /s

    Author Comment

    I've replaced the portions of the entries that specify my office shares with variables in curly braces for security reasons.



    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares\//{office server 3}/QALeads
        ID  REG_BINARY      A4A517BF253BFB42A5DF741EAE3E7600
        LastSyncTime        REG_BINARY      BA277EC21FC5C901

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares\//{office server 1}/{share 1}
        ID  REG_BINARY      5C460BF9AF3F3848932B7C4263621FB1
        LastSyncTime        REG_BINARY      241B8AC21FC5C901

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares\//{office server 2}/SLTeam
        ID  REG_BINARY      BB5351E622CADB44A1EAF3C7F097164F
        LastSyncTime        REG_BINARY      58E248ABB67FC901

    lph-56k4olzue/my documents
        ID  REG_BINARY      E13E1A588C7A1D4FAF734F5E4E1ECEAB
        LastSyncTime        REG_BINARY      6C4B004F2AB3C901
    LVL 66

    Accepted Solution

    OK, so you have 1 location for home, and 3 for the office, correct? The following is a few command lines that I have scripted to reset Offline Files, and to reset invalid synch locations.

    If the Office ones are set by Policy, then they will rebuild on thier own. The home one I assume is not GPO controlled, so that will need to be setup as well.

    This also reinitializes the Offline Files database, wiping out ALL locally cached copies of the files. If you follow the steps, and use csccmd.exe, to extract the offline copies, you will NOT lose any data.

    In the code snippet you will find the lines, just copy them all in sequence, once the files are extracted......

    Please do not reinitialize the CSC database until you verify all files are in synch...
    To make sure that the Offline Files are all in Synch.....
    If the Offlines Files folder shows files not synchronized, or only local copy exists, please follow here....
    Get the following from the web....
    Features and functions in version 1.1 of the Client-Side Caching ...
    DL it here....Copy it to C:\windows\system32
    Then run the following command....
    csccmd.exe /extract /target:C:\ExFiles /recurse
    csccmd.exe /extract /target:C:\ExFiles /recurse /onlymodified
    If you see it extracting data, then go to c:\ExFiles and see whats present....
    Once this is verified.....
    Rt click My Computer>Properties>Advanced>User Profiles, and remove non primary profiles from the machine....
    Then once the user profiles are removed.....
    Uncheck all locations in the Synch Manager, then click the Setup Tab
    and uncheck all locations under the Logon/Logoff and Idle page....
    Then. Paste the following commands into the CMD window.
    (Or make a batch file, and share it with your friends... )
    reg add "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache" /v FormatDatabase /t reg_dword /d 00000001
    reg delete "hkcu\Software\Microsoft\Windows\CurrentVersion\netcache\shares" /f
    reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares" /ve
    reg delete "hkcu\Software\Microsoft\Windows\CurrentVersion\netcache\AssignedOfflineFolders" /f
    reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\NetCache\AssignedOfflineFolders" /ve
    Then log back in, and the Adminstratively Assigned offline files key will rebuild. Might take 2 reboots....
    Restart once more, and you should see the redirected folders rebuilding....

    Open in new window


    Expert Comment

    johnb6767 -> you are a shining star!!

    Thanks V much for this excellent post.



    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
    We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now