TechSpot

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

By cs49
Nov 22, 2004
  1. 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
     
  2. LNCPapa

    LNCPapa TS Special Forces Posts: 4,341   +280

Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.