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
Scriptlanguage=vbs
.C.