Speeding Access to Office 365 PowerShell Data Using Where Instead of Where-Object

MVP

The Office 365 for IT Pros eBook includes many PowerShell examples, and while we mostly concentrate on illustrating the principles of how PowerShell is used to solve problems, we do care about performance. Which is why we’re always interested in finding ways to speed up our code. This this article we explore how to use the Where method to replace the Where-Object cmdlet to filter objects. The good news is that it’s an easy way to get better code performance.

 

https://office365itpros.com/2020/09/07/speed-powershell-code-where-method/

0 Replies