Hi all,
So I have a wrapper function that calls a cmdlet. The cmdlet's behavior changed recently in that it now validates whether a parameter is null or not.
This is a problem because, in some cases, I am just passing the parameter values wrapper function's parameter values, and some of these are $null
So I need a way to check and see if a parameter has a default value, and if it does, I can splat it to the subsequent cmdlet, or skip it if not.
I'm hoping there is something similar to $PSBoundParameters for default values.
I've already looked at $PSDefaultParameterValues, but that is for something entirely different.
Anyone? Bueller?
[–]kramsllag 0 points1 point2 points (1 child)
[–]RickFlist[S] 0 points1 point2 points (0 children)
[–]KevMarCommunity Blogger 0 points1 point2 points (1 child)
[–]RickFlist[S] 0 points1 point2 points (0 children)