Deleting Inactive AD Computers from SCCM 2012

I wrote the following script to find inactive computers in Active Directory and then find & delete them from SCCM. Feel free to use & abuse as you see fit, but always run through a test environment first. My version makes sure to target only Windows Operating Systems, and excludes anything with Server in the caption – you’ll want to adjust the filter as needed in your specific environment.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.