October 16th, 2012

PowerTip: Find PowerShell Providers that Support Transactions

Doctor Scripto
Scripter

Summary: Use the Get-PSProvider cmdlet to find Windows PowerShell providers that support transactions.

Hey, Scripting Guy! Question How can you find out which Windows PowerShell providers on your system support transactions?

Hey, Scripting Guy! Answer Use the Get-PSProvider cmdlet and pipe the results to Where-Object to filter out capabilities that include transactions.

In Windows PowerShell 3.0:

Get-PSProvider | ? capabilities -match transactions

In Windows PowerShell 2.0:

Get-PSProvider | ? {$_.capabilities -match ‘transactions’}

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.