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
Subscribe to:
Post Comments (Atom)
Blog Archive
Tags
Links
About Me
- Catherina
- I took the PowerShell Master Class for Thomas Lee in Stockholm in march 2010.
0 kommentarer:
Post a Comment