AD | Application | AWS | Azure | Cloud | Database | Enterprise | Environmental | Event Log | File System | IoT | IT Service | Network/System | NIS2 | Infra | Performance | Protocol | SaaS | Security | Service Level | Storage | Linux | VMware | VoIP | Web | Wireless | SNMP

MonitorTools.com » Administration » Powershell » Powershell 3.0 » Undo-Transaction

Undo-Transaction - Powershell 3.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 »

Undo-Transaction

Short description
Rolls back the active transaction.

Syntax


Description
The Undo-Transaction cmdlet rolls back the active transaction. When you roll back a transaction, the changes made by th
e 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. However, t
ransactions can be started with a different rollback preference and you can use this cmdlet to roll back the active tra
nsaction 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.





M