Solved

Windows 7 offline Sync

Posted on 2015-02-12
1
113 Views
Last Modified: 2015-02-16
We want to move users Home drive from one file share (domain A) to another (domain B). The issue is we have 200 laptop users that sync offline. We need to make sure that the offline sync is the same as the server copy, if not copy the CSC cache to the server and then move the data to a new location.

Has anyone done this before and has a script or advice how we can automate this.
0
Comment
Question by:ITISEMEA
1 Comment
 
LVL 12

Accepted Solution

by:
Dave earned 500 total points
ID: 40607501
Are you changing the users domains as well?

Basically I don't think what you want is possible as the state of the cache is only visible on the local machine when its logged on and connected, and the file copy needs to be done on the server.

Also:-

Remember offline folders are managed by share name, not mapped letter so I can't see a way to keep the local copy and associate it with the new location. Users are going to loose their local copy and have to re-download it after the re-sync.

You are going to have to remove the cached copy of the local files for the old share from the users workstation, otherwise users will get an error at logoff when windows tries and syncs the defunct share.

You may run into permissions issues as some tasks may need to run as the users and others may need to run as  the server context.

Your script that syncs folders needs to run on the workstation, but I assume the copy to the new share needs to run on the server.

Some applications use USNs rather than drive letters in the Most Recently Used list. These will barf when you change the server name.

Given the above I think this is one of those questions where the answer is "it isn't possible"

According to this page:-

https://msdn.microsoft.com/en-us/library/windows/desktop/bb787862(v=vs.85).aspx

the following code will force a sync, but it needs to be run on the laptop when its network connected.

Private Sub fnSynchronizeVB()
    Dim objShell   As Shell
    Dim objFolder2 As Folder2
    
    Set objShell = New Shell
    Set objFolder2 = objShell.NameSpace("\\server\share\folder")

    If (Not objFolder2 Is Nothing) Then
        objFolder2.Synchronize
    End If

    Set objFolder2 = Nothing
    Set objShell = Nothing
End Sub

Open in new window

0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I will provide some simple productivity hacks that will help you use Google to specifically show results from any web site (Experts-Exchange.com in my example), with minimal effort in Chrome and Firefox. I've seen a common theme a…
Lately there has been a variety of news related to U.S. employment.  Stories about worker productivity, automobile and airline unions, low employment and foreign laborers have frequented the news.  Each story has good and bad attributes we might arg…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

932 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

10 Experts available now in Live!

Get 1:1 Help Now