Logon script to set My Documents to users mapped network drive

  • Thread starter Thread starter Raigo
  • Start date Start date
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.
 
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
 
Back
Top