Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Get-Transaction

Get-Transaction - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Gets the current (active) transaction.

Get-Transaction [<CommonParameters>]

The Get-Transaction cmdlet gets an object that represents the current transaction in the session.

This cmdlet never returns more than one object, because only one transaction is active at a time. If you start one 
or more independent transactions (by using the Independent parameter of Start-Transaction), the most recently start
ed transaction is active, and that is the transaction that Get-Transaction returns.

When all active transactions have either been rolled back or committed, Get-Transaction shows the transaction that 
was most recently active in the session.

The Get-Transaction cmdlet is one of a set of cmdlets that support the transactions feature in Windows PowerShell. 
For more information, see about_Transactions.