Test-WssConfigurationOption

Test-WssConfigurationOption

Validates server name, domain name and domain administrator credentials.

구문

Parameter Set: Credential
Test-WssConfigurationOption [-Credential <PSCredential> ] [ <CommonParameters>]

Parameter Set: AdminAccount
Test-WssConfigurationOption -NetbiosName <String> -NewAdminCredential <PSCredential> [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]

Parameter Set: ComputerName
Test-WssConfigurationOption -NetbiosName <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]

자세한 설명

The Test-WssConfigurationOption cmdlet validates server name, domain name and domain administrator credentials in Windows Server Essential Experience.

매개 변수

-ComputerName<String>

Specifies the name of the computer with which to work.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Credential<PSCredential>

Specifies a PSCredential object. To obtain a PSCredential object, use the Get-Credential cmdlet. The cmdlet uses the credential supplied by this parameter to connect to the server to test.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-NetbiosName<String>

Specifies the NetBIOS name of the domain to which the computer being tested belongs.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-NewAdminCredential<PSCredential>

Specifies a PSCredential object. To obtain a PSCredential object, use the Get-Credential cmdlet. The cmdlet validates the user name and password in the credential you supply, and then creates a new user account by using these credentials.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • System.Boolean

    This cmdlet generates a value of $True or $False to represent whether you can configure Windows Server Essential Experience on the target server by using the parameter values that you specify.

예제

Example 1: Validate a server configuration

The first command obtains a credential and stores the result in the $PsCredential variable.

The second command validates the configuration for a server named Contoso-01 in the NetBIOS domain named Contoso-dom.

PS C:\> $PsCredential = Get-Credential
PS C:\> Test-WssConfigurationOption -NetbiosName "Contoso-dom" -ComputerName "Contoso-01" -Credential $PsCredential

관련 항목

Get-WssConfigurationStatus

Remove-WssConfigurationData

Start-WssConfigurationService

Test-WssPrecheckResult