使用 powershell 的交易?

Using transactions with powershell?

我正在尝试执行以下脚本:

Start-Transaction
Remove-Item D:\sandbox\temp.txt -UseTransaction
Undo-Transaction

我不断收到以下错误:

The provider does not support transactions. Perform the operation again without the -UseTransaction parameter.
At line:3 char:1
+ Remove-Item D:\sandbox\temp.txt -UseTransaction
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (:) [], PSNotSupportedException
    + FullyQualifiedErrorId : NotSupported

有人知道为什么吗?我正在使用 Windows 7 Professional x64 和 Powershell 4。D:\ 是本地驱动器。

来自开始交易的获取帮助:

The cmdlets used in a transaction must be designed to support transactions. Cmdlets that support transactions have a UseTransaction parameter. To perform transactions in a provider, the provider must support transactions. The Windows PowerShell Registry provider in Windows Vista and later versions of Windows supports transactions. You can also use the Microsoft.PowerShell.Commands.Management.TransactedString class to include expressions in transactions on any version of Windows that supports Windows PowerShell. Other Windows PowerShell providers can also support transactions.

已强调

我认为文件系统提供程序不支持事务。