Script For deleting Computer Name in SCCM 2012

Dears,

I have more than 1700 computer names in our AD and showed in SCCM 2012, whenever we wants to delete computers in active directory by some reason, we should go manually delete the computer in SCCM, but if sometime we have more than 200 computers how can I delete manually 200 computers every time? please I need script or any other functions to do this job which means deleting all the computers in SCCM which already deleted in active directory but still remain in SCCM.

Thanks...

August 23rd, 2015 2:32am

This may help

https://elderec.org/2012/09/powershell-delete-computer-from-ad-and-sccm/

Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2015 4:49am

Thanks Paul...but I don't need delete computer from AD because I can delete it manually, my question whenever you deleted from AD but the computers still remain in SCCM, so I need script to delete computer from SCCM after deleting from AD, thanks in advance..
August 24th, 2015 7:20am

Remove-CMDevice: https://technet.microsoft.com/en-us/library/jj821759(v=sc.20).aspx
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2015 7:52am

Here's a script that I used and work well for deleting accounts from AD and SCCM

https://elderec.org/2012/09/powershell-delete-computer-from-ad-and-sccm/

August 24th, 2015 10:50am

I tried it doesn't works, I don't know why? but this script is removing in both AD and SCCM, we already deleted from AD manually but we want to deleted from SCCM?
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2015 3:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics