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>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
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