Search code examples
c#internet-explorerdigital-certificatecertificate-authority

How do I programmatically remove a certificate in Trusted Root Certification Authorities?


I need to be able to remove a specific certificate from each PC in my organization. Yes, I could go seat-to-seat, but I have until Thursday to pull it off, and I don't have the manpower to go seat-to-seat.

Is there a programmatic way of doing this using C#?


Solution

  • I don't think you need to crank out any C# - take a look at certmgr.exe /del.

    If you really do want to write some C# today to do this, then take a look at X509Store.Remove.