Skip to content

Instantly share code, notes, and snippets.

@arebee
Created December 11, 2015 23:34
Show Gist options
  • Save arebee/d83fc81ebf58ceab8b7e to your computer and use it in GitHub Desktop.
Save arebee/d83fc81ebf58ceab8b7e to your computer and use it in GitHub Desktop.
# Current User
dir Cert:\CurrentUser\ -Recurse | where {(($_.Issuer -ne $null) -and ($_.Issuer.ToString() -match '.*Apple.*')) }
dir Cert:\CurrentUser\ -Recurse | where {(($_.Issuer -ne $null) -and ($_.Issuer.ToString() -match '.*Microsoft.*')) }
# Current Machine
dir Cert:\LocalMachine\ -Recurse | where {(($_.Issuer -ne $null) -and ($_.Issuer.ToString() -match '.*Apple.*')) }
dir Cert:\LocalMachine\ -Recurse | where {(($_.Issuer -ne $null) -and ($_.Issuer.ToString() -match '.*Microsoft.*')) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment