< Back

Set-DtcTransaction

Tue Jan 29, 2019 10:24 pm

NAME Set-DtcTransaction



SYNOPSIS

Modifies the state of a transaction.





SYNTAX

Set-DtcTransaction [-CimSession <CimSession[]>] [-DtcName <String>] [-ThrottleLimit <Int32>] -Abort -TransactionId <Guid> [<CommonParameters>]



Set-DtcTransaction [-CimSession <CimSession[]>] [-DtcName <String>] [-ThrottleLimit <Int32>] -Commit -TransactionId <Guid> [<CommonParameters>]



Set-DtcTransaction [-CimSession <CimSession[]>] [-DtcName <String>] [-ThrottleLimit <Int32>] -Trace -TransactionId <Guid> [<CommonParameters>]



Set-DtcTransaction [-CimSession <CimSession[]>] [-DtcName <String>] [-ThrottleLimit <Int32>] -Forget -TransactionId <Guid> [<CommonParameters>]





DESCRIPTION

The Set-DtcTransaction cmdlet modifies the state of a transaction in the Distributed Transaction Coordinator (DTC) host-level properties stored in

the registry.





PARAMETERS

-Abort <SwitchParameter>

Indicates to abort the specified transaction.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession

or Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Commit <SwitchParameter>

Specifies to commit the specified transaction.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-DtcName [<String>]

Specifies a DTC instance. The cmdlet modifies the state of a transaction in the DTC host-level properties for this instance.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Forget <SwitchParameter>

Indicates to forget the specified transaction.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0

is entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running

on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Trace <SwitchParameter>

Specifies to trace the transaction.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-TransactionId <Guid>

Specifies the TransactionId of the transaction to modify.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS











OUTPUTS











Example 1: Set a trace for a transaction



PS C:\\> Set-DtcTransaction ????????DtcName "Local" ????????Trace ????????TransactionId 2E6E62E0-044B-4DFE-9A8B-B69CFF5C9E26



This command sets a trace for the specified transaction.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=317179

Get-DtcTransaction