

The device is not a member of a Workgroup.The device is available in ConfigMgr but not in Active Directory.The script checks every device that is available in the All Systems collection if it is still available in Active Directory and it will delete devices that comply to the following rules: With the release of Service Pack 1 for Configuration Manager you are able to use real Configuration Manager cmdlets instead of connecting through WMI to your Configuration Manager 2012 site. This way the customer is able to keep its Configuration Manager database clean and update date.

I am not a real scripting guy but for one of my customers I wrote a Powershell script that allows you to delete devices in Configuration Manager 2012 SP1 that have been deleted from the Active Directory.
