How to manage certificates with PowerShell – Part 2 – Certificate removal

1 - Introductio

In the previous articleHow to manage certificates with PowerShell – Part 1 – Certificate installation we have seen a script to install a certificate by using the mighty PowerShell, mixed with .NET and Active Directory. Here we will see how we can remove a certificate still by using PowerShell and querying our Active Directory, and of course... our .NET class.If you want to learn more about the x509Store .NET class, i suggest you to visit theX509Store Class MSDN documentation.The process is quite similar to the previous one, except some small changes in the code.Before starting, i would like to emphasize one important point when playing with certificates:work with the thumbprintBy experience, ... Continue reading »