Logon script to set My Documents to users mapped network drive

R

Raigo

Environment is W2K server as fileserver, Win XP Pro workstations have
mapped H: drive on server for each user home directory. This H drive
is mapped during a logon script (.vbs).

Is it possible and how to set My Documents to point H: drive with
logon script?

Manually this is done My Documents->Properties->Target

thanks.
 
N

Neil Brown

Try this in a VBS File

Dim WSHShell
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders\Personal", "H:\"
WSHShell.RegWrite
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders\My Pictures", "H:\My Pictures"

Its always worked on my machines!!

NB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top