Exporting a public key using PowerShell

Example:

$certs = Get-ChildItem Cert:\LocalMachine\My
$type = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert
# Pick the first cert
$certBytes = $certs[0].Export($type)
[System.IO.File]::WriteAllBytes("nnn.cer", $certBytes)
Advertisements

How to backup bad DVDs

If DVD Shrink 3.2 cannot read the disc, you should try DVD Decrypter. Go to Tools –> Settings and the I/O tab. Reduce error retries to e.g. 5 and check “Ignore Read Errors”. Then, use ISO read mode to rip to hard disk and then use DVD Shrink on the saved ISO file.

Alternative method: http://forums.afterdawn.com/thread_view.cfm/124000