Solved

Windows 7 offline Sync

Posted on 2015-02-12
1
125 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
Gain an elementary understanding of Blockchain technology.
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
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…

728 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