A PowerShell script that scans all the computer objects in System Center Configuration Manager and removes them if a corresponding computer object doesn't exist in Active Directory.
Read more at https://lookanotherblog.com/remove-sccm-old-computer-objects-based-on-sids/