Create PS Credential from Strings
$Username = 'Username' $Password = 'Password' $SecureString = ConvertTo-SecureString $Password -AsPlainText -Force $Credential = New-Object System.Management.Automation.PSCredential $Username, $SecureString
My name is Matthew Dowst and I am a father, author, blogger, Microsoft MVP in PowerShell and Azure Hybrid & Migration. And I am an enthusiast of all things PowerShell and DevOps.
Practical Automation with PowerShell
Now available on Amazon and all major book retailers
My name is Matthew Dowst and I am a father, author, blogger, Microsoft MVP in PowerShell and Azure Hybrid & Migration. And I am an enthusiast of all things PowerShell and DevOps.
Practical Automation with PowerShell
Now available on Amazon and all major book retailers