Test-Dtc

Test-Dtc

Tests whether two computers can participate in networked transactions.

Syntax

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>]

Detaillierte Beschreibung

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.

Parameter

-InformationAction<System.Management.Automation.ActionPreference>

Aliasse

infa

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-InformationVariable<System.String>

Aliasse

iv

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-LocalComputerName<String>

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

Aliasse

none

Erforderlich?

false

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-RemoteComputerName<String>

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

Aliasse

none

Erforderlich?

false

Position?

2

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

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.

Aliasse

none

Erforderlich?

false

Position?

3

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Confirm

Sie werden vor dem Ausführen des Cmdlets zur Bestätigung aufgefordert.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

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

Verwandte Themen

Get-Dtc

Install-Dtc

Start-Dtc

Stop-Dtc

Uninstall-Dtc