Test-Dtc

Test-Dtc

Tests whether two computers can participate in networked transactions.

構文

Parameter Set: Default
Test-Dtc [[-LocalComputerName] <String> ] [[-RemoteComputerName] <String> ] [[-ResourceManagerPort] <Int32> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Test-Dtc cmdlet tests whether two computers can participate in networked transactions. The cmdlet performs the following tests:

-- Checks whether the required firewall rules are enabled.
-- Checks whether the Microsoft Distributed Transaction Coordinator (MSDTC) network security settings are correctly configured for network transactions.
-- Checks whether the two computers can ping each other.
-- Checks whether a transaction can be propagated between the two computers.

パラメーター

-InformationAction<System.Management.Automation.ActionPreference>

エイリアス

infa

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-InformationVariable<System.String>

エイリアス

iv

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-LocalComputerName<String>

Specifies the virtual server name of the MSDTC instance on the local computer to test.

エイリアス

none

必須?

false

位置は?

1

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoteComputerName<String>

Specifies the virtual server name of the MSDTC instance on the remote computer to test.

エイリアス

none

必須?

false

位置は?

2

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ResourceManagerPort<Int32>

Specifies the port number that the MSDTC diagnostic Resource Manager uses. If you do not specify a value, this cmdlet uses a default value of 3002.

エイリアス

none

必須?

false

位置は?

3

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Test MSDTC on the local comptuter

This command tests MSDTC on the local computer.

PS C:\> Test-Dtc -LocalComputerName "$env:COMPUTERNAME" -Verbose

Example 2: Test MSDTC on the local computer and a remote computer

This command tests the local computer and the computer named Contoso075. The command specifies a resource manager port.

PS C:\> Test-Dtc -LocalComputerName "$env:COMPUTERNAME" -RemoteComputerName "Contoso075" -ResourceManagerPort 17100 -Verbose

Example 3: Test MSDTC on a local computer that blocks inbound transactions

This command tests the local computer and the computer named Contoso075. The output from this test shows that the local computer does not allow inbound transactions.

PS C:\> Test-Dtc -LocalComputerName "$env:COMPUTERNAME" -RemoteComputerName "Contoso075" -ResourceManagerPort 17100 -Verbose

Example 4: Test MSDTC on a local computer that blocks outbound transactions

This command tests the local computer and the computer named Contoso075. The output from this test shows that the local computer does not allow outbound transactions.

PS C:\> Test-Dtc -LocalComputerName "$env:COMPUTERNAME" -RemoteComputerName "Contoso075" -ResourceManagerPort 17100 -Verbose

関連トピック

Get-Dtc

Install-Dtc

Start-Dtc

Stop-Dtc

Uninstall-Dtc