$host.ui.PromptForCredential
$host.ui.PromptForCredential
Problem discovered when updating to PFv2.0.15 from PFv2.0.8.The following code correctly prompts for credentials (with the appropriate heading) when the code is exported to exe in v2.0.8.Code snippet:$initAnswerAS = "Enter your App_Support credentials."$global:credential = $host.ui.PromptForCredential("AppSupport Credentials", "$initAnswerAS", "", "")This exact code (when exported to exe in v2.0.14 or v2.0..15) does not show the cred box correctly. Instead, it shows a generic credential box, as if you ran "get-credential.")Thank you!-Josh MiddlebrooksBlueCross BlueShield of TN
$host.ui.PromptForCredential
The new host is using the built in PowerShell Credential Dialog. It seems there were requests from multiple user in regards to changing the previous dialog. I will file a feature request to add an option for a customizable dialog. David
davidc2011-10-24 12:44:03
davidc2011-10-24 12:44:03
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.