Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon Script to copy home folder to another server 1

Status
Not open for further replies.

cjpmcglinchey

Technical User
Sep 23, 2004
37
GB
Hi Folks

Here goes:

When network was setup all users were granted exclusive rights to their home folders, no access for admins:-(

The server is now running low on disk space, so I now want to split the users over several servers but with access to their home folders.

I would like to create a batch file that will copy all their documents from one server to other when they logon. The question is how.

Current Setup is:-

Source \\server3\teachers$\%username%
Destination \\server2\teachers$\%username%

what would be the best option for me to do here as i am ready for the dole queue.

Any Help would be very much appreciated.

Many Thanks

Chris



 
Using a group policy you can redirect the My Documents folder on the desktop to copy the files to a location specified, either individual or across the board (for all users).

Right click on OU
Select Properties, then Group Policy Tab
Either create a new policy or double click the one you wish to add on to.

Under User Configuration select Windows settings, folder redirect, then My Documents

Righ click on my documents then select properties, this will bring up the screen you need.

If you need any help beyond this please let me know.
 
I noticed teachers$ in the path so I will assume you are a high school, I have setup several high school networks in the past but never where the admin couldn't see into user folders. Does it have to remain this way or can you add the admins group to the user folders?

One way might be to use Windows backup and then redirect the restore to the new locations, a logon script might fail in a number of awkward ways if the users have allot of work.


Another alternative is Robocopy

"Sometimes, a cigar is just a cigar." - Sigmund Freud
 
Hi guys

Thanks for the advice I am going to go with part of your suggestion bofh. I never thought of using the backup "stupid me".

What happens in windows server 2003 in folder redirection you can grant user exclusive access to my documents and this does not even allow admin access, only way to gain access is to take ownership and this messes up folder redirection.

Going to try a few things 2morrow so will let you all know how I get on.

Thanks
Chris

Ps. Yes I do work in a high school for my sins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top