We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 31c59cd + 697749a commit a286344Copy full SHA for a286344
docset/windows/pkiclient/import-pfxcertificate.md
@@ -39,11 +39,11 @@ Delegation may be required when using this cmdlet with Windows PowerShell® remo
39
40
### EXAMPLE 1
41
```
42
-PS C:\>$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText
+PS C:\>$mypwd = Get-Credential -UserName 'Enter password below' -Message 'Enter password below'
43
44
45
46
-PS C:\>Import-PfxCertificate -FilePath C:\mypfx.pfx cert:\localMachine\my -Password $mypwd
+PS C:\>Import-PfxCertificate -FilePath C:\mypfx.pfx -CertStoreLocation Cert:\LocalMachine\My -Password $mypwd.Password
47
48
49
This example imports the PFX file my.pfx with a private non-exportable key into the My store for the machine account.
0 commit comments