Wednesday, September 07, 2011

Export Certificates using Powershell

dir cert:\LocalMachine\My | Where-Object { $_.hasPrivateKey } | Foreach-Object { [system.IO.file]::WriteAllBytes("$home\$($_.SubjectName).pfx", ($_.Export('PFX', '')) ) }

3 comments:

Craig said...

when running this script I get an error on the Export section:
Exception calling "Export" with "2" argument(s): "Key not valid for use in specified state.

Mijalko said...

Maybe your certificate does not have exportable private key.

nz976pzemi said...

Unlike slots or different casino video games, the chances in video poker are clear, making it easy for you to can} calculate your odds of beating the home, does 온라인카지노 not matter what} variation you select. When may have} this information, you can to|you possibly can} devise a technique for any video poker recreation to take control over your betting. Given this truth, as a substitute of providing you with an inventory of one of the best video poker video games, let’s take a look at|have a glance at} how you can calculate your odds at any video poker recreation.