2016-04-21 10 views

Antwort

2

Powershell ist es ganz einfach:

$driverFile = 'C:\temp\myDriver.sys'; 
$outputFile = 'C:\temp\output.cer'; 
$exportType = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert; 

$cert = (Get-AuthenticodeSignature $driverFile).SignerCertificate; 
[System.IO.File]::WriteAllBytes($outputFile, $cert.Export($exportType));