Difference between revisions of "Creating a PSCredential object"
From MyWiki
(Created page with "<source="text"> $secpasswd = ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force $mycreds = New-Object System.Management.Automation.PSCredential ("username", $secpa...") |
(No difference)
|
Revision as of 21:21, 8 November 2014
<source="text"> $secpasswd = ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force $mycreds = New-Object System.Management.Automation.PSCredential ("username", $secpasswd)
You can now pass $mycreds to any -PSCredential input parameter </source>