Redirection of offline files

  • Thread starter Thread starter itreman
  • Start date Start date
I

itreman

Here's the scenario. We have all user files on Server A:
\\servera\home\%username%. We want to move them all to Server B:
\\serverb\%username% (\\serverb\home\%username% - haven't decided yet).
however, in my testing, when moving shares to a different server, the
offline files connection is broken on the client. does anyone know how
to get that to follow, either with a GPO or a script of some sort?
thanks!!
 
At the time of the move you'd also have to change the Home Folder
setting on the Profile tab of the users account. This can be scripted
in your move script.

I had to do this recently.
I started with a text file listing of all user ID's to be moved called
users.txt
An example of the script would be:
*****************************************************************************************************
net use T: \\serverb\home
net use U: \\servera\home

for /f "Tokens=1" %%i in (c:\users.txt) do call :parse %%i
goto END
:parse

T:
cd\
MD %1
cacls T:\%1 /T /E /G %1:C "Domain Admins":F
XCOPY U:\%1 T:\%1

dsmod user "CN=%1,OU=USERS,dc=DOMAIN,dc=COM" -hmdir \\server\share\%1
dsmod user "CN=%1,OU=USERS,dc=DOMAIN,dc=COM" --hmdrv H:

:END
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top