[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2332
  • Last Modified:

Offline Folders - How to undo?

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?
0
rsorrent
Asked:
rsorrent
1 Solution
 
pml_raviCommented:
Try this command to uncheck (turn off) offline files for the share.

net share name_of_shared_folder /cache:none
0
 
mohd_haqCommented:
Hi,
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.
0
 
johnb6767Commented:
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?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
rsorrentAuthor Commented:
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
0
 
johnb6767Commented:
How are you accessing the Desktop PC? Mapped Drive, UNC, Shortcut?

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

\\IP\Share
0
 
rsorrentAuthor Commented:
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
0
 
johnb6767Commented:
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?
0
 
rsorrentAuthor Commented:
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.
0
 
johnb6767Commented:
start>run>cmd

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

Post the results please...
0
 
johnb6767Commented:
Sorry...

reg query "hkcu\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares" /s
0
 
rsorrentAuthor Commented:
I've replaced the portions of the entries that specify my office shares with variables in curly braces for security reasons.

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares

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

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares\//Ra
lph-56k4olzue/my documents
    ID  REG_BINARY      E13E1A588C7A1D4FAF734F5E4E1ECEAB
    LastSyncTime        REG_BINARY      6C4B004F2AB3C901
0
 
johnb6767Commented:
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 ...
http://support.microsoft.com/kb/884739
 
DL it here....Copy it to C:\windows\system32
http://stingr.net/ftp/pub/csccmdv1.1.zip
 
Then run the following command....
 
csccmd.exe /extract /target:C:\ExFiles /recurse
or 
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.....
 
start>run>mobsync
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... )
 
start>run>cmd
 
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

0
 
skibosupportCommented:
johnb6767 -> you are a shining star!!

Thanks V much for this excellent post.

Regards

James
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now