Created
August 23, 2014 02:05
-
-
Save zakird/a8582ced2f50cfe1c702 to your computer and use it in GitHub Desktop.
powershell script that exports trusted root certificate authorities on Windows machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$type = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert | |
get-childitem -path cert:\LocalMachine\AuthRoot | ForEach-Object { | |
$hash = $_.GetCertHashString() | |
[System.IO.File]::WriteAllBytes("$hash.der", $_.export($type) ) | |
} |
Can you provide script to import them all?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run it in a windows opened as "Run as administrator"