title: Encrypt String with the Machine Key in Powershell?
body: <p>I want to Encrypt a password in Powershell to save it to a file. The <code>ConvertTo-SecureString</code> uses the current credentials to encrypt and decrypt the string.</p>
  
  <p>I want to encrypt it with the local machine key (probably the SYSTEM account credentials) so every username on the same computer will be able to use the password.</p>
  
  <p>I want the string to be undecryptable on other computers.</p>