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,182   +411

Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...