How can I use a script to delete a computer from a domain?
February 18th, 2006 . by AliThe following code will delete the passed computer name (e.g., “delme”) from the alibutt domain.
Dim objDC
Dim strComputer, strDomain
strComputer = “delme”
strDomain = “alibutt”
Set objDC = getobject(”WinNT://” & strDomain )
objDC.Delete “Computer”, strComputer
