Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm on a Win 2000 network with exchange on Windows 2000 server. There are about 50 users. I need to write a logon script to copy the users "my documents" to a shared mapped drive on the server. I have accomplished this with xcopy but I couldn't get the /exclude switch to work. I'm going to try this with robocopy instead. I need to exclude all .pst .mp3 and .mpg from being saved to the shared mapped drive. I have installed the robocopy.exe on the exchange server where I'm writing the script. Can anyone help? Here is a copy of what I've done so far and it doesn't work.
robocopy C:"\Documents and Settings"\%username%"\Desktop" J:\\Backup\Desktop /s /e /mir /XF *.pst *.mp3 *.mpg *.mpeg

Are the desktops windows 2000 or XP ?
If they are, you can use Group Policy to redirect local My Documents to users Home Folders or where ever you want on a server.
It's alot cleaner and faster. Scripting for 2000 is an extreme Administrative Tool to reduce time and enhance deployment.
Check out Redirecting the My Documents Folder for All Users in Windows 2000. Microsoft Knowledge Base Article - 216463
http://support.microsoft.com/?kbid=216463
Good Luck

They are Win 2000 machines on the network. Well, I don't want to redirect the "my documents" folder. I simply would like to back the folder up to a shared drive on the server every time the user logs on. If I can get the robocopy to work, my boss will probably want different files and folders backed up as well, like the cookis and other stuff.
Thanks for the help,

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |