August 23, 2010
With this script you send the credentials in clear text. But with this someone else can use it, like helpdesk. With password in encrypted file; no one else can use it.

 
$user = "adminuser"            
$password = ConvertTo-SecureString 'adminpassword' -AsPlainText -Force            
$cred = new-object System.Management.Automation.PSCredential $user,$password
 
 

0 kommentarer: