Set-DtcTransaction

Applies To: Windows Server 2012 R2 Preview

Set-DtcTransaction

Set-DtcTransaction can be used to modify the state of a transaction in the DTC host level properties stored in the registry.

Syntax

Parameter Set: AbortSet
Set-DtcTransaction -Abort -TransactionId <Guid> [-DtcName <String> ] [ <CommonParameters>]

Parameter Set: CommitSet
Set-DtcTransaction -Commit -TransactionId <Guid> [-DtcName <String> ] [ <CommonParameters>]

Parameter Set: ForgetSet
Set-DtcTransaction -Forget -TransactionId <Guid> [-DtcName <String> ] [ <CommonParameters>]

Parameter Set: TraceSet
Set-DtcTransaction -Trace -TransactionId <Guid> [-DtcName <String> ] [ <CommonParameters>]

Detailed Description

Set-DtcTransaction can be used to modify the state of a transaction in the DTC host level properties stored in the registry.

Parameters

-Abort

Specifies to abort the specified transaction.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Commit

Specifies to commit the specified transaction.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DtcName<String>

Specifies the DTC service for which to modify the state of a transactions DTC host level properties

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Forget

Specifies to forget the specified transaction.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Trace

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-TransactionId<Guid>

Specifies the TransactionId of the transaction to be returned.

Aliases

none

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, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.