Link to home
Start Free TrialLog in
Avatar of pzilioli
pzilioli

asked on

Active Directory Home Path

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"
            usr.SetInfo
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
ASKER CERTIFIED SOLUTION
Avatar of merowinger
merowinger
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

Avatar of pzilioli
pzilioli

ASKER

Thanks merowinger, I'll try to add : in the homedrive properties...
I'll send to you a feedback
k good luck!
I'm not 100% maybe the : is not required...but give it a try :)