TheTAZZone - Internet Chaos

Delete an Active Directory computer account:

ORIGINALLY POSTED BY CEMETRIC FOR THETAZZONE/TAZFORUM HERE

NOT ALL THE CODE MAY BE IN THIS POST…PLEASE FOLLOW THE LINK TO THE ORIGINAL THREAD

Code: Select all
strComputer = "CompName"

set objComputer = GetObject(“LDAP://CN=” & strComputer & _
“,CN=Computers,DC=domain,DC=com”)
objComputer.DeleteObject (0)

Another very simple one I'm gagging for a shag
Scriptlanguage=vbs

.C.

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertise

If you'd like to advertise on The Mutt ( aka TheTAZZone.com ) feel free to contact us at: administration[at]thetazzone.com

TheTAZZone is a non-commercial entity. We do not sell any products or services ourselves. Our revenue comes from advertising and donations only.

We appreciate your support! Your advertising revenue ( or donations ) helps us to continue to upgrade, improve, and offset the costs of maintaining this site.

Donations can be made through the page ' Donate '.