Solved

Windows 7 offline Sync

Posted on 2015-02-12
1
110 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

762 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

18 Experts available now in Live!

Get 1:1 Help Now