Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows 7 offline Sync

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

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

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…
With the internet and the ease of information transference, many professional jobs can be done anywhere today.  Why should it make a difference whether an x-ray is read in India or the United States as long as the radiologist is qualified?   Outso…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

688 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