Relative Content

Tag Archive for multithreadingpowershellparallel-processingexchange-online

Getting shared mailbox permissions with parallel processing

I’m trying to improve performance in a script that gets all shared mailboxes that a user has delegate access to in Exchange Online. The script finds mailboxes where the user has “Read and Manage” and “Send As” access, but we can just focus on the “Read and Manage” part for this discussion. The “Send As” part is very similar, but uses the Get-EXORecipientPermission cmdlet. I’d like a solution for PowerShell 5.1 (Windows), but don’t mind examples in PowerShell 7 (core). I’d also prefer a solution that outputs to the host as it goes, but this wouldn’t matter if I could make it blazing fast.