Created
May 18, 2017 15:31
-
-
Save JamesCalleja/ff04c051643ce4690fc800f7f4f380e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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