Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Undo-Transaction

Undo-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
Rolls back the active transaction.

Undo-Transaction [-Confirm] [-WhatIf] [<CommonParameters>]

The Undo-Transaction cmdlet rolls back the active transaction. When you roll back a transaction, the changes made b
y the commands in the transaction are discarded and the data is restored to its original form.

If the transaction includes multiple subscribers, an Undo-Transaction command rolls back the entire transaction for
 all subscribers.

By default, transactions are rolled back automatically if any command in the transaction generates an error. Howeve
r, transactions can be started with a different rollback preference and you can use this cmdlet to roll back the ac
tive transaction at any time. 

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