Created
January 16, 2017 22:30
-
-
Save galeksandrp/fc067782c1e1e3c778f9c732bd41240b to your computer and use it in GitHub Desktop.
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
Certutil -generateSSTFromWU WURoots.sst | |
[reflection.assembly]::LoadWithPartialName("System.Security") | |
$certs = new-object system.security.cryptography.x509certificates.x509certificate2collection | |
$certs.import("WURoots.sst") | |
$store = new-object system.security.cryptography.X509Certificates.X509Store -argumentlist "AuthRoot", LocalMachine | |
$store.Open([System.Security.Cryptography.X509Certificates.OpenFlags]"ReadWrite") | |
$store.AddRange($certs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment