I want manual pagination for PowerShell commands for SharePoint such as Get-SPUser
or Get-SPSite
. I know there is command viz. Out-Host -paging facility available but it is not manual pagination i.e. it does not take argument of pageSize=30
. I want a facility of taking this argument of pageSize
so that it will display those many records ( in this case say 30 ) per page.
-Limit parameter does not take range like (0..10) or (10..20) so it is also not useful
Can anybody help how to accomplish manual pagination for PowerShell ?