Active Directory Home Path

Posted on 2007-08-07
Medium Priority
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
  • 2
LVL 31

Accepted Solution

merowinger earned 2000 total points
ID: 19644631
did u forgot the : ?

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

Expert Comment

ID: 19645791
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

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

Expert Comment

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

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here's a look at newsworthy articles and community happenings during the last month.
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

850 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