List certificates held on remote computer

Welcome Forums General PowerShell Q&A List certificates held on remote computer

This topic contains 2 replies, has 2 voices, and was last updated by

3 years, 3 months ago.

  • Author
  • #33915

    Points: 42
    Rank: Member

    Hi all very new to working with certs, especially with powershell


    i need to delete/expire/revoke certificates held on a server issued by a certain common name

    i can connect to the server fine with invoke-command however i have no idea where to start on looking through the certs attributes (I tried the -filter switch of get-childitem but it reported it did not support filters)


  • #33916

    Points: 0
    Rank: Member

    You'll probably just need to pipe to Where-Object for this one. Something like:

    Invoke-Command -ComputerName Whatever -ScriptBlock {
        Get-ChildItem Cert:\ -Recurse |
        Where-Object { $_.Issuer -eq 'CN=DigiCert SHA2 Assured ID Code Signing CA,, O=DigiCert Inc, C=US' }
  • #33921

    Points: 42
    Rank: Member

    many thanks Dave,

    could i just replace get-childitem with remove-item?

The topic ‘List certificates held on remote computer’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort