Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving the 'My Documents' folder 1

Status
Not open for further replies.

DantanaSwat

IS-IT--Management
Dec 3, 2003
29
US
Im in an NT 4.0 domain with 2000 and xp workstations. As of now there are two servers with the users home directories and I am trying to move all of the home directories onto one server as well as change everyone's 'My Documents' folder to aim at said home directory. Some are set up and some are not. I looked at the below script but cant find alot of documentation...does the MoveHere function change the path of the my documnent folder as well...does the CopyHere?

Const MY_DOCUMENTS = &H5&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_DOCUMENTS
 
No, you would only be doing a file level move and not changing the pointers in the OS if I understand what you are suggesting.

The following article should give you exaclty what you are looking for.

Registry Settings for Folder Redirection in Windows

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Exactly what I can use..so..users leave for the day...I copy all of the stuff over to said directory and in the logon scrtip insert
Code:
set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal", "\\servername\%USERNAME%", "REG_EXPAND_SZ"
This assuming Ive created the folders and set up the shares of course
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top