Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSHostUserInterface.PromptForCredential Method

 

Updated: April 27, 2016

Applies To: Windows PowerShell

When overridden in a derived class, prompts the user for credentials for a specified target. The variants of this method can be used to prompt the user with a specified prompt window caption, prompt message, user and target name, credential types allowed to be returned, and user interface (UI) behavior options.

Namespace:   System.Management.Automation.Host
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodPromptForCredential(String, String, String, String)

When overridden in a derived class, prompts the user for credentials with a specified prompt window caption, prompt message, user name, and target name.

System_CAPS_pubmethodPromptForCredential(String, String, String, String, PSCredentialTypes, PSCredentialUIOptions)

When overridden in a derived class, prompts the user for credentials by using a specified prompt window caption, prompt message, user name and target name, credential types allowed to be returned, and UI behavior options.

Return to top

Community Additions

Show: