Finding all PowerShell Function Parameter Default Values
Finding all PowerShell Function Parameter Default Values
Today, I had a need to find all of the parameters in a function that had a default value. After a quick tweet on Twitter, I was advised to use Get-Help using the parameters property.
[powershell] (Get-Help Get-FunctionName -Full | select -ExpandProperty parameters).parameter.defaultValue [/powershell]
This works great for functions with help content but didn’t work with my function since it…
View On WordPress














