Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Script

Name

Description

Last Modified Date

 Convert string to secure string

Used for cmdlets that require secure strings

01/01/2012 

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

 

 

  • No labels