Jump to content

Recommended Posts

Posted

To save me reinventing the wheel does anyone have a script that will copy a folder from a network share to local that will run at station startup?

 

I'd like to copy a default user folder from the server to the overwrite the local default user profile on clients at startup.

 

Cheers.

Posted

xcopy "\\server\share\Default User" "c:\Documents and Setings\Default User" /y

 

This should copy the contents of the folder. Create a bat file and run at startup...

Although a robocopy script may reduce the startup time, as it can skip files that haven't been changed.

Posted

It runs from a share and you can use variables excellent :)

 

%logonserver%\NETLOGON\robocopy\robocopy "%logonserver%\NETLOGON\Default User" "C:\Documents and Settings\Default User" /E /PURGE /V /NP /R:10 /W:30

Posted (edited)

Ok that almost works flawlessly except that it won't run as a startup script and the logfile is blank. It does work if I specify 'servername' rather than %logonserver% but i'd rather distribute the load.

 

Any ideas?

 

EDIT

 

Sorted it \\domainname.whatever\netlogon works and it puts a nice little log on C:\ :D

 

\\domain.com.uk\NETLOGON\robocopy\robocopy "\\domain.com.uk\NETLOGON\Default User" "C:\Documents and Settings\Default User" /E /PURGE /V /NP /R:10 /W:30 >C:\robolog.txt

Edited by cookie_monster

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...