Use-Transaction - Powershell 2.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
Short description Adds the script block to the active transaction. Syntax Use-Transaction [-TransactedScript] <scriptblock> [-UseTransaction] [<CommonParameters>] Description The Use-Transaction cmdlet adds a script block to an active transaction. This enables you to do transacted scriptin g using transaction-enabled Microsoft .NET Framework objects. The script block can contain only transaction-enabled .NET Framework objects, such as instances of the Microsoft.PowerShell.Commands.Management.TransactedString class. The UseTransaction parameter, which is optional for most cmdlets, is required when using this cmdlet. The Use-Transaction cmdlet is one of a set of cmdlets that support the transactions feature in Windows PowerShell. For more information, see about_Transactions.