Thursday, June 25, 2009

Remove Servers That Report Offline

Situation: You have your clients configured to synchronize files with servers. For whatever reason, one of your file servers does not exist anymore, however, your clients still try to connect to it and it reports offline.

Solution:
  1. We need to remove the locally cached copies of those files. Open "My Computer", click "Tools | Synchronize...". Highlight the Offline Files folder, then click the properties button. This will bring up the magic Offline Files folder. To make it easier to read, on the menu bar, click "View | Details". If you scroll to the right, you will have a column named "Location". Click that header to sort on that field. Now, find the files that are referenced on your old server, highlight and delete. You may get a warning, say OK. If you are not a user with rights to the file, you may have to log in as administrator to perform this. WARNING - Someone probably knows why, but this delete takes FOREVER. So be prepared for a wait.
  2. While you may think you're done, you're wrong! There is a registry key that holds the shares you sync with that needs to be addressed, and it's tricky! It is stored under the local user hive, so, you have to be logged in as the user with the folder share that syncs to the missing server. Once logged in, open regedit, navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\NetCache\Shares\. If you expand shares, you will see entries for all the connections. Simply pick the offending server, right click > delete. You will have to RESTART the computer to reload the hive. (There is a way to access the user hive from administrator, under HKEY_USERS, but it is hard to decipher the "S-1-5-18" etc.)