Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clear Homedrive on User Object in AD

Status
Not open for further replies.

JadeKnight

IS-IT--Management
Feb 23, 2004
94
NO
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 :

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 :(... 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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top