title: Install a pfx certificate on a remote server with powershell
body: <p>By following this, 
  <a href="https://stackoverflow.com/questions/21278492/install-certificate-with-powershell-on-remote-server">Install certificate with PowerShell on remote server</a></p>
  
  <p>I'm trying to install a pfx certificate on a remote server by using the following Powershell command,</p>
  
  <pre><code>Invoke-command -ComputerName myservername -scriptblock { Import-PfxCertificate –FilePath D:\pfxcert.pfx cert:\localMachine\my -Password (ConvertTo-SecureString -String "mypassword" -Force –AsPlainText) }
  </code></pre>
  
  <p>This is giving below error message for me...</p>
  
  <pre><code>The term 'Import-PfxCertificate' is not recognized as the name of a cmdlet, function, script file, or operable
  program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  + CategoryInfo          : ObjectNotFound: (Import-PfxCertificate:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException
  + PSComputerName        : myservername
  </code></pre>
  
  <p>Please help me out on this.</p>