PDA

View Full Version : Folder Redirection?


deronsizemore
July 18th, 2006, 07:48 PM
I'm sorry if this is the wrong forum, but I didn't know where to post it.

Anyway, I'm wondering about Folder Redirection. I'm going to start redirecting users' My Documents folders to the server so that they are always backed up. To enable folder redirection, do we need to have roaming profiles set up? Everything I've been able to find thus far seems to associate the two and that seems like you do need roaming profiles set up before you redirect the folders from the local machine, to the server.

If we don't need roaming profiles (which we don't want them), what is the best way to go about folder redirection? We were going to just use a group policy, but didn't know if there was an easier way? We have about 50 end users currently.

Thanks

Miz
July 18th, 2006, 09:21 PM
Moved to Networking from XP forum.

Archangel122184
July 18th, 2006, 09:31 PM
Set it through group policies. Thats the easiest way unless you want to write a script to do it...

Just make sure you have the path right for it. It should be something like

\\adserver\%username%

The key is %username% . It is a windows environment variable set at logon so that the system can recognize the user in command lines... in this case a pathname.

Archangel122184
July 18th, 2006, 09:38 PM
To script it... just put this in the users logon script (it will only have to run once, but just in case the users want to reset it it will fix itself every logon)


Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.Run "net use H: \\server\%username%",,1
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\User Shell Folders\Personal", "H:\"
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\User Shell Folders\My Pictures", "H:\My Pictures"
WSHShell = Nothing


Note: this is a vbscript logon script...not a batchfile.

deronsizemore
July 19th, 2006, 05:17 PM
Thank you for the help! I appreciate it.