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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon Script

Status
Not open for further replies.

andytheautomator

Technical User
Nov 20, 2003
32
US
Hello all,

I am trying to change the location of the “my documents” folder. I am able to find the current location. Is there any way to change it to \\Server\Users\%username%?

'Dim myPath
'
'myPath = createobject("WScript.Shell").SpecialFolders.Item'("mydocuments")
'MsgBox myPath

Thanks
 
Much as I love scripting, why don't you just use an AD GPO to redirect this? Just takes a few clicks.

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

Regards,

Mark
 
Mark,
Thanks for the post. It sounds helpful.. how do I do it? If I can do it that way that would be way easier.
 
Hopefully you know how to get into a GPO. Expand out the category for Folder Redirection. Then right click on My Documents and set the place you want them redirected to.

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

Regards,

Mark
 
Thanks Mark. That worked great. So is there no way to modify it with a logon script?

Thanks
 
You could do it via registry edits.

HKCU\Software\Microsoft\Windows\Current Version\Explorer\Shell Folders\Personal



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

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top