共用方式為


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.

public enum class PSCredentialUIOptions
[System.Flags]
public enum PSCredentialUIOptions
[<System.Flags>]
type PSCredentialUIOptions = 
Public Enum 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