OfficeDev / O365-InvestigationTooling

MIT License
574 stars 361 forks source link

Get-AllTenantRulesAndForms.ps1: Use -ResultSize Unlimited #65

Open classicsc opened 5 years ago

classicsc commented 5 years ago

Getting all mailboxes instead of only 1000 does not appear to cause any issues. Tested on a tenant with over 50,000 users.

PsychoData commented 5 years ago

Ironically the problem with -ResultSize Unlimited, in my experience, is that you can easily take so long to return that you actually have problems with it disconnecting when fetching large return sets.