JadeKnight
IS-IT--Management
I'm working with a script wich among a lot of things is going to clear homeDirectory/Drive attribute on user account, however I'm a bit stuck here.
I've tried this, with no luck :
I also played around with Const ADS_PROPERTY_CLEAR = 1 in a couple of wild combinations with bad luck
... I noticed that the fields in ADSI edit did have a clear button to remove it, so I think I'm on to something... but my I'm pretty emtpy on idea's and syntax.
Any help would be appreciated
I've tried this, with no luck :
Code:
objUser.Put "homeDirectory", ""
objUser.Put "homeDrive", ""
objUser.SetInfo
I also played around with Const ADS_PROPERTY_CLEAR = 1 in a couple of wild combinations with bad luck
Any help would be appreciated