msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

PageSize parameter does not work in PowerShell 5.1

Open willfiddes opened this issue 2 years ago • 0 comments

Using the -pagesize parameter does not work in PowerShell 5.1. It does not add the $top parameter to the MS Graph request.

For example... Get-MgUser -All -PageSize 999 Get-MgGroup -All -PageSize 999 Get-MgGroupMember -All -PageSize 999 Get-Device -All -PageSize 999

It works correctly in PowerShell 7

Using MS Graph PowerShell v1.11

$PSVersionTable Name Value


PSVersion 5.1.22000.832 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.22000.832 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

willfiddes avatar Aug 19 '22 16:08 willfiddes