Прочитај на енглеском

Делите путем


PSCredentialUIOptions Enum

Definition

Defines the options available when prompting for credentials. Used by PromptForCredential calls.

This enumeration supports a bitwise combination of its member values.

C++
public enum class PSCredentialUIOptions
Inheritance
PSCredentialUIOptions
Attributes

Fields

Name Value Description
None 0

Performs no validation.

Default 1

Validates the username, but not its existence or correctness.

ValidateUserNameSyntax 1

Validates the username, but not its existence. or correctness.

AlwaysPrompt 2

Always prompt, even if a persisted credential was available.

ReadOnlyUserName 3

Username is read-only, and the user may not modify it.

Applies to

Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0