Summary: Use the Get-PSProvider cmdlet to find Windows PowerShell providers that support transactions.
How can you find out which Windows PowerShell providers on your system support transactions?
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