Jump to content

Recommended Posts

Posted

Hi All,

 

Quick one hopefully!

 

Over the summer we want to move our staff home folders to our Storage Server, at the moment our folders reside on Server02 and the path is \\server02\homes$\staff\%username%

 

We want them to move to \\storage\homes$\staff\%username% i know i can do this with robocopy to keep permissions and such, but a few members of staff synchronise for offline files, how can we redirect the offlline files on the laptops so that they synchronise to the correct home folder when they return?

 

 

Thanks

 

Michael

Posted
they should automatically redirect to the new location as offline files should get the settings frm AD, the best way for you would be to create a test staff user and try on that username first so you know what issues you will get and hopefully get tehm resolved before the final move. let us know how you get on though...
Posted

I use scripts for this.

 

Robocopy will copy the NTFS permissions but it wont re-create the shares on the target server, also the users home directory will need changing in AD.

Posted
In the past i've used Robocopy as well but i've also found using Windows backup to be very straight forward as well, simply backup the folders to a file then redirect the restore, all NTFS permissions will be maintained.
Posted

Offline files will not automatically pick up the new location.

 

You can either delete the offline cache on the laptop and it will then pick up the new location or you can use csccmd.exe to redirect the share.

 

csccmd needs to be run on the client machine and I did mine with a login script.

 

csccmd.exe /moveshare:\\server02\%username%$ \\server03\%username%$

 

Ben

  • Thanks 1
Posted

Thanks for your replies so far, the main thing i wanted to know was what happens about offline files..

 

I'll test it out and let you know what happens!

 

Michael

  • 3 weeks later...
Posted

Thanks for Everyones Help so far, I have move the files across without any problem and have tested the csccmd.exe and that works, but what is the easiest way of getting this on every machine? I'm not that good at writing scripts, but ok at modifying someone elses.

 

Please help if you can.

 

Michael

Posted

You just change the settings on the user profile in activate directory (presuming you talking about home directory)

 

To map loads at once in the home drive area put this

\\server\share\%username%

 

If you replace server and share to you appropiate names bu leave user name it will map the home drive to the right folders. This will only work if the folders are named the same as the username though.

 

Did that make sense?

 

Z

Posted

not sure if its the best way but you could use a logon script

 

copy /y "\\server\shair\csccmd.exe" "c:\windows32\system32"

 

that will work, addit to any logon script and it should copy the csccmd in.

Posted

Is the folder it is copying it over to valid?

Did you make it into a .bat file?

Did you make it into a startup script?

 

also might be worth running the script in a command prompt to see you error.

 

Z

Posted (edited)

Hi Z,

 

Its nearly there but when the copy to location is System32 then the script fails with a permission error, when its to the C:\ it works fine..

 

I'm running it as a machine logon script so in theory it should copy it across as SYSTEM. Shouldn't it?

(Edit: the script so far is...)

 

Set FSO =CreateObject("scripting.FileSystemObject")

FSO.CopyFile "\\apps\apps$\csccmd\csccmd.exe", "c:\windows\system32" ,True

 

 

Michael

Edited by linkazoid
Posted
Hi Z,

 

Its nearly there but when the copy to location is System32 then the script fails with a permission error, when its to the C:\ it works fine..

 

I'm running it as a machine logon script so in theory it should copy it across as SYSTEM. Shouldn't it?

(Edit: the script so far is...)

 

Set FSO =CreateObject("scripting.FileSystemObject")

FSO.CopyFile "\\apps\apps$\csccmd\csccmd.exe", "c:\windows\system32" ,True

 

 

Michael

 

Have you made sure that the computer accounts have access to the source file as it could be this causing your permission error instead?

 

Also have you tried putting the file into the C:\Windows directory as this is also in the default search path for excecutibles, is there a definitave need to have it in the system32 directory?

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...