Skip to content

Instantly share code, notes, and snippets.

@JamesCalleja
Created May 18, 2017 15:31
Show Gist options
  • Select an option

  • Save JamesCalleja/ff04c051643ce4690fc800f7f4f380e9 to your computer and use it in GitHub Desktop.

Select an option

Save JamesCalleja/ff04c051643ce4690fc800f7f4f380e9 to your computer and use it in GitHub Desktop.
cd Cert:\LocalMachine\My\
$mypwd = cat Microsoft.PowerShell.Core\FileSystem::\\rplan\netlogon\Logon\pwd.txt | ConvertTo-SecureString -key (1..16)
Import-PfxCertificate -Exportable:$false -Password $mypwd -FilePath '\\rplan\netlogon\Logon\star.dev.rplani.co.uk.pfx' -Confirm:$false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment