PowerTip: Find PowerShell Providers that Support Transactions

Doctor Scripto

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’}

0 comments

Discussion is closed.

Feedback usabilla icon