Editar

Compartir a través de


Receive-DtcDiagnosticTransaction

Propagates a transaction from a given diagnostic Resource Manager.

Syntax

Default (Default)

Receive-DtcDiagnosticTransaction
    [[-ComputerName] <String>]
    [[-Port] <Int32>]
    [[-PropagationMethod] <DtcTransactionPropagation>]
    [<CommonParameters>]

Description

The Receive-DtcDiagnosticTransaction cmdlet propagates a transaction from a specified diagnostic Resource Manager (RM). A transaction is created on the specified RM and propagated to the Windows PowerShell® client using either pull or push propagation. Use the PropagationMethod parameter to specify the propagation mechanism.

Examples

Example 1: Receive a diagnostic transaction

PS C:\> Receive-DtcDiagnosticTransaction -ComputerName "Host1" -Port 17123 -PropagationMethod Pull
Id
--
d23fd4b1-1b54-486a-9e9f-a92550a19ce2

This command pulls a diagnostic transaction from Host1 port 17123.

Parameters

-ComputerName

Specifies the host name of the computer on which the RM runs. If you do not specify a host name, this cmdlet uses the name of the local computer.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Port

Specifies the listening port of the test RM.

Parameter properties

Type:Int32
Default value:3002
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PropagationMethod

Specifies the propagation mechanism, pull or push, to use. The default is pull.

Parameter properties

Type:DtcTransactionPropagation
Default value:None
Accepted values:Pull, Push
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.