Creating a PS Credential from a Clear Text Password in Powershell

Before I begin here, let me say, this is very unsecure.  There are very few times when doing this would be a good idea from a security standpoint.  That being said, it is definately possible. First things first.  We need to build a secure string for the password: PS C:\> $password = "mypassword" | ConvertTo-SecureString…

7