I just finished working on a script of mine which starts with the following line.
$Credential = Get-Credential -UserName “DOMAIN\AdminJoe” -Message “Provide Admin credentials:”
Now, when the Windows Powershell Credential Request prompts, there’s a drop down list. Because of the line above, DOMAIN\AdminJoe is already filled in. I was wondering if it’s possible to add multiple accounts to this drop down list, so that a colleague of mine can execute the script with his credentials (without entering his account name over and over again).
Looking forward to the response!