Closed basvinken closed 5 years ago
Thanks for the heads up. This is a weird one because it's not actually an object reference query, but it seems to act like one. And the docs indicate that even if you wanted to query it directly by reference, you can't.
As you say, adding a switch is likely the easiest way forward. But it will probably be something like -NoPaging
because generally switches default to off and you can't tell if a switch defaults to true from the syntax text using Get-Help
.
The -NoPaging
option is now live in version 1.6.0.
example code:
error:
I think the easiest way to fix this is by adding $UsePaging to the parameterset with a default value of $true.