Change the behavior of each cmdlet in a Powershell session to pass a verbose flag

If I wanted to change the behavior of each cmdlet in a Powershell session to pass a detailed flag, I could achieve this in Powershell v3 with $ PSDefaultParameterValues, like this

$PSDefaultParameterValues['*:Verbose'] = $true 

What would be a possible workaround for Powershell v2?

+2
source share
1 answer

No, this is a new feature in PowerShell 3.0 and later: about_Parameters_Default_Values

0
source

Source: https://habr.com/ru/post/1214323/


All Articles