PS - Secure Password from String

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)

 

 

CodeMonkey Software is a division of JCHMedia www.jchmedia.com