r/PowerShell • u/TheLazyAdministrator • Jun 23 '18
Create an Interactive HTML Report for Office 365 with PowerShell
http://thelazyadministrator.com/2018/06/22/create-an-interactive-html-report-for-office-365-with-powershell/
141
Upvotes
4
2
2
1
6
u/nothingpersonalbro Jun 24 '18 edited Jun 24 '18
Minor critique, I would opt to change this method of creating objects:
To this:
There is also a lot of
$Array += $objgoing on. If speed is an issue, it might be worth looking into changing them from fixed arrays to aGeneric.List.Generic.List example:
Compare the speed of this:
Versus this:
2123.019 versus 34.581 milliseconds, pretty big difference. If you really want to have fun, watch how long it takes the first one to do 100,000 items. The
Generic.Listcan shred through it in no time :)