Changing users' MyDocuments folder with a script (Is this possible?)

I have created a folder on a spare machine called users shared it.

In that folders i have put a folder for each user with there name as the
folder as their username.

And created the following script:

Dim objNet, strUserName

Set objNet = CreateObject("Wscript.Network")

strUserName =objNet.UserName

objNet.MapNetworkDrive "N:", "\\server\users\" & strUserName
WSCript.Quit

Saved as a vbs added to all the All Users/Startup so it runs and the drive
appears in My Computer. Perfect!

But i want the my document location to be set to that drive, how would i do
this rather than properties on each My Docs folder on every machine! Is
there a script or anyywhere in gpedit?

All machines including server run xp pro sp2.

TIA

Carl

- Please use proper thread titles
Didou
 
Back