-
Notifications
You must be signed in to change notification settings - Fork 10
Max Results
#Max Results
###What is it? Every time you run a gShell Cmdlet you have to hit the Google Apps server which reduces the daily API usage quota by 1. In an effort to allow users to use the large-result Cmdlets in a limited fashion, some Cmdlets such as Get-GAUser or Get-GAGroupMember allow you to specify a maximum number of results you want returned. For instance:
Get-GAUser -All -MaxResults 100
###Details Sometimes you'll notice the amount of results retrieved are more than the max value you specified. This is because some results are brought down from the server in pages.
For example, if you were to specify a MaxResults of 75 users, gShell first gets a package of 50 users. Since that is not at 75, it gets another package. At this point you have 100 users, but those 100 users are as close to 75 as you can get, without falling short.
Note: The page size may differ depending on the Cmdlet. 50 users is not the actual number, but is used as an example here.
News - Get Started - Cmdlet Index - FAQ - Discussion - Downloads