Skip to content

Instantly share code, notes, and snippets.

@galeksandrp
Created January 16, 2017 22:30
Show Gist options
  • Save galeksandrp/fc067782c1e1e3c778f9c732bd41240b to your computer and use it in GitHub Desktop.
Save galeksandrp/fc067782c1e1e3c778f9c732bd41240b to your computer and use it in GitHub Desktop.
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