Login Script to Redirect My Documents

Posted on 2006-04-20
Last Modified: 2008-01-09
Currently i have all my users mapped to U:\ : (\\server\user\%username%) ( in AD )

I was hoping to add to my login script something that would automatically Change My Documents (from local C:) to the user drive which is U:\

Any help would be nice.

Please and Thank You.
Question by:Helder_Hipolito
    LVL 3

    Expert Comment

    In fact, a better approach is to set this in AD's Group Policy.

    Look under "User configuration"

    LVL 5

    Accepted Solution

    Check this out, will do exactly what you need.

    I used it many times
    LVL 5

    Expert Comment

    So you see that it is per machine the way I did it, depending on how many users you can have them manually run that script after you edit, put it in their logon script once, or just push it out thru AD.

    Then done.
    LVL 2

    Expert Comment

    if you are in an active directory intergrated environment then the it will be fairly simple using group policy. in this case you create a new group policy and browse to the user configuration >windows settings>folder redirection> my documents setting: Advanced (specify locations for various users and groups).
    Put all the users in a group and specify the path for it. that should be it. apply the policy to the organisational unit containing the users and that should be it
    LVL 31

    Expert Comment

    We are all assuming you have access to GPO.  Is this the case?  Else, what script language are you using?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Title # Comments Views Activity
    SCOM - Create Tasks 1 51
    AS400 Logging Print device 2 65
    Ubuntu 16.04 Emergency Boot 2 125
    DNS Dynamic Update 7 49
    Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now