Removes the computer profile from Active Directory.
The computer profile is the service connection point associated with the computer object. This method does not remove the computer object itself from Active Directory.
Delete may throw one of the following exceptions:
- InvalidOperationException if the computer profile cannot be found. This usually indicates that the computer is not in a zone.
- UnauthorizedAccessException if there are insufficient permissions to delete the Active Directory computer profile.
The following code sample illustrates using Delete for a computer object in a script:
... set objZone = cims.GetZone("sierra.com/Performix/Zones/HongKong") 'Identify the computer account Set objComp = cims.GetComputerByPath("LDAP://CN=aix_fr03, cn=Performix,CN=Computers,DC=sierra,DC=com”) 'Delete the profile for the computer account objComp.Delete ...