linkazoid Posted July 16, 2008 Posted July 16, 2008 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
ilycool Posted July 16, 2008 Posted July 16, 2008 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...
ChrisP Posted July 16, 2008 Posted July 16, 2008 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.
cookie_monster Posted July 16, 2008 Posted July 16, 2008 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.
powdarrmonkey Posted July 16, 2008 Posted July 16, 2008 Take the opportunity to move your home directories under one share. It solves so many problems later on.
SpuffMonkey Posted July 16, 2008 Posted July 16, 2008 Give them all a floppy disk and tell them to get on with it...
plexer Posted July 16, 2008 Posted July 16, 2008 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 1
linkazoid Posted July 16, 2008 Author Posted July 16, 2008 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
FN-GM Posted July 16, 2008 Posted July 16, 2008 Instead of using Robocopy for moving the files i would suggest this http://www.microsoft.com/windowsserver2003/upgrading/nt4/tooldocs/msfsc.mspx its much more easier to use, it moves the shared folder and all the permissions. 2
linkazoid Posted August 6, 2008 Author Posted August 6, 2008 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
FN-GM Posted August 7, 2008 Posted August 7, 2008 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
linkazoid Posted August 7, 2008 Author Posted August 7, 2008 Thanks Z but i know how to do that... but i dont know the best way or how to copy csccmd to all the PCs.
notalot Posted August 7, 2008 Posted August 7, 2008 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.
linkazoid Posted August 7, 2008 Author Posted August 7, 2008 I've tried that but it doesnt copy it across...
FN-GM Posted August 7, 2008 Posted August 7, 2008 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
linkazoid Posted August 7, 2008 Author Posted August 7, 2008 (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 August 7, 2008 by linkazoid
FN-GM Posted August 7, 2008 Posted August 7, 2008 Ah thats why, you will need to run it as a startup to get into system32.
linkazoid Posted August 7, 2008 Author Posted August 7, 2008 yeah sorry i meant that i have tried running it as a startup script.
SYNACK Posted August 7, 2008 Posted August 7, 2008 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? 1
linkazoid Posted August 7, 2008 Author Posted August 7, 2008 OMG why am i such a div... Why didn't i think of that.... It worked straight away!!! THANK YOU - THANK YOU - THANK YOU:):)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now