PSCredentialUIOptions Enumeration
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Defines the options that are available, such as different validation options, when prompting for credentials.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
| Member name | Description |
|---|---|
| AlwaysPrompt | Always prompt, even if a persisted credential is available. |
| Default | Validates the user name, but not its existence or correctness. |
| None | Performs no validation. |
| ReadOnlyUserName | The user name is read-only and the user may not modify it. |
| ValidateUserNameSyntax | Validates the syntax of the user name, but not its existence or correctness |
These constants are used when prompting for credentials using the PromptForCredential method.
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.