Hello
here is my problem. I have more than 400 users who have a home directory mapped by using their AD properties (tab profile --> Home folder --> \\server\share).
For several reasons, I want to map their Home folder only by using the login script and therefore, remove these settings in the Active Directory.I want the radio button "local path" to be check instead of the 2 others,
I tried to write a script to do that without success.
I tried:
objUser.Put "homeDirectory",vbNullString
objUser.Put "homeDrive",vbNullString
objUser.SetInfo
'OR
objUSer.PutEx ADS_PROPERTY_CLEAR,"homeDirectory",vbNullString
objUser.PutEx ADS_PROPERTY_CLEAR,"homeDrive", vbNullString
'OR
objUser.PutEx ADS_PROPERTY_DELETE,"homeDirectory", vbNullString
objUser.PutEx ADS_PROPERTY_DELETE,"homeDrive", vbNullString
If you have any idea, it would be more than welcomed!
here is my problem. I have more than 400 users who have a home directory mapped by using their AD properties (tab profile --> Home folder --> \\server\share).
For several reasons, I want to map their Home folder only by using the login script and therefore, remove these settings in the Active Directory.I want the radio button "local path" to be check instead of the 2 others,
I tried to write a script to do that without success.
I tried:
objUser.Put "homeDirectory",vbNullString
objUser.Put "homeDrive",vbNullString
objUser.SetInfo
'OR
objUSer.PutEx ADS_PROPERTY_CLEAR,"homeDirectory",vbNullString
objUser.PutEx ADS_PROPERTY_CLEAR,"homeDrive", vbNullString
'OR
objUser.PutEx ADS_PROPERTY_DELETE,"homeDirectory", vbNullString
objUser.PutEx ADS_PROPERTY_DELETE,"homeDrive", vbNullString
If you have any idea, it would be more than welcomed!