Active Directory Home Path

Posted on 2007-08-07
Last Modified: 2013-11-05
I am trying to change the profile path for several users within the same Organizational Unit in Windows Active Directory, by a vbscript function
In particular, this is the settings I made in a script.
            usr.LoginScript = "script.bat"
            usr.HomeDrive = "Z"
            usr.HomeDirectory = "\\portale\portale\aree_Dipartimentali\g_rad"
Into the AD users and computers, after script execution, I find the right settings, but when the users logon to own windows client, drive Z is not mapped.
If i write this parameter manually into AD U&C Profiles, drive Z is mapped correctly on the client.
1) The directory share \\portale\portale\aree_dipartimentali\g_rad already exists on the server
2) Every users are members of G_RAD group
3) G_RAD group has full permission on \\portale\portale\aree_Dipartimentali\g_rad
what can I do? I prefer to avoid to use windows logon script ...
Thanks in advance
Question by:pzilioli
    LVL 31

    Accepted Solution

    did u forgot the : ?

    usr.HomeDrive = "Z"
    usr.HomeDrive = "Z:"  
    LVL 51

    Expert Comment

    You can also select all the users in ADUC you want to change by holding down the CTRL key and selecting them.  

    Right click the collection and select properties.
    You can change this Home drive setting on all of them at once, provided they simply point to the same place.


    Author Comment

    Thanks merowinger, I'll try to add : in the homedrive properties...
    I'll send to you a feedback
    LVL 31

    Expert Comment

    k good luck!
    I'm not 100% maybe the : is not required...but give it a try :)

    Featured Post

    Looking for New Ways to Advertise?

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

    Join & Write a Comment

    Suggested Solutions

    This is my first article in EE and english is not my mother tongue so any comments you have or any corrections you would like to make, please feel free to speak up :) For those of you working with AD, you already are very familiar with the classi…
    Starting in Windows Server 2008, Microsoft introduced the Group Policy Central Store. This automatically replicating location allows IT administrators to have the latest and greatest Group Policy (GP) configuration settings available. Let’s expl…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    731 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

    15 Experts available now in Live!

    Get 1:1 Help Now