Monday, November 24, 2008

Deleting a Computer Account

Deletes an individual computer account in Active Directory.

strComputer = "atl-pro-040"
set objComputer = GetObject("LDAP://CN=" & strComputer & _
                            ",CN=Computers,DC=fabrikam,DC=com")
objComputer.DeleteObject (0)


This is a VB Script, this can be used by saving the file in .vbs file