Import-PfxCertificate -FilePath file.pfx -CertStoreLocation Cert:\LocalMachine\My -Password ( ConvertTo-SecureString "password" -AsPlainText -Force )