Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find PowerShell Providers that Support Transactions

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles