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

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

출력

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

예제

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