Undo-DtcDiagnosticTransaction

Invokes the Abort process on the specified transaction.

Syntax

Undo-DtcDiagnosticTransaction
    [-Transaction] <DtcDiagnosticTransaction>
    [<CommonParameters>]

Description

The Undo-DtcDiagnosticTransaction cmdlet invokes the Abort process on the specified transaction.

Examples

Example 1: Undo a DTC diagnostic transaction

PS C:\> $Tx = New-DtcDiagnosticTransaction
PS C:\> Undo-DtcDiagnosticTransaction -Transaction $Tx

This command creates a new diagnostic transaction and assigns it to a variable.

The second command undoes the transaction.

Required Parameters

-Transaction

Specifies the DtcDiagnosticTransaction object on which to invoke the Abort process. You can use the pipeline operator to pass this parameter value to the cmdlet.

Type:DtcDiagnosticTransaction
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False