Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows 7 offline Sync

Posted on 2015-02-12
1
Medium Priority
?
132 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.

876 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