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

Redirect My Docs

Status
Not open for further replies.

jockojem

Technical User
Jan 7, 2002
95
GB
Hi

I wondered if someone can help. I want to be able to redirect My Docs out of the profile and map it to a network share for my Citrix users.

We run W2K MF1.8 with regular NT system policies (ie not AD).

I have tried amending the path at HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal

However this doesn't seem to work. Anyone any successful ways of doing this? A custom ADM they want to share?

Any help VERY gratefully recieved - this is driving me NUTS!!! :-(
 
Create a file called "MyDocs.vbs" and cut and paste the following in it:

************************************************************

dim wshell
set wshell = wscript.createobject ("wscript.shell")
dim wshnetwork
set wshnetwork = wscript.createobject ("wscript.network")
dim username
username = wshnetwork.username
dim userpath
userpath = &quot;\\<server>\<share>\&quot; + username
wshell.regwrite &quot;HKCU\software\microsoft\windows\currentversion\explorer\user shell folders\personal&quot;, userpath
dim exists
dim fso
set fso = createobject (&quot;Scripting.filesystemobject&quot;)
exists = 0
dim newfolder
newfolder = &quot;\\<server>\<share>\&quot; + username

exists = 0

************************************************************

You need to change <server> to your server that will host the home directory share and also change <share> to the name of your home directory share.

You can put this in their startup folder or include a link to the file in a logon script.

This worked for me for a long while but now I've upgrade to AD and it works great! Upgrade your domain if you can because Group Policies rule!

Jeremy
 
Thanks Jeremy.

I can get this to work with a fresh, brand new profile - but not with an exsiting one.

Do you have any ideas?

Thanks

Jem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top