Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
languagepowershell
titleConvertTo-SecureString Example
$plainTextPassword = 'mypassword' 
$secureStringPassword   = ConvertTo-SecureString  $plainTextPassword -AsPlainText  -force  
$cred = New-Object System.Management.Automation.PSCredential ('MyDomain\MyAccount', $secureStringPassword)