Nope. If I use the following then it appears to work but the AD does not accept the change and continues to connect to the old home drive.
User.HomeDrive = " "
User.HomeDirectory = " "
User.SetInfo
The following script reads a value in the AD which is okay.
Set adsSystemInfo = CreateObject("ADSystemInfo")
Set User = getobject("LDAP://OU=Users,DC=mydomain,DC=com")
strCurrentDrive = User.HomeDrive
strCurrentDrivePath = User.HomeDirectory
User.SetInfo
The following code...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.