microsoft / Intune-Data-Warehouse

Libraries, samples, and feedback on the Intune Data Warehouse.
MIT License
33 stars 18 forks source link

Adding ability to download entire collections #10

Closed nickciaravella closed 6 years ago

nickciaravella commented 6 years ago

This pull request adds a few things:

1) Ability to provide a -All switch to Get-IntuneDataWarehouseCollection which will result in automatically paging all of the data from the collection.

2) When -Top is larger than the server page size, it will page in the rest of the data until the Top amount is received

3) Added documentation on how to convert and save the data received by this cmdlet into a CSV file

4) Removed exception handling as it makes assumptions about the exceptions caught which can lead to a new exception, hiding the original. The exception details it was trying to write to the console are always available using the PowerShell $errors array. We can consider altering exception handling if we get feedback about confusing errors.