Ok, I have run into this so many times, I don't think I am the only one that has been having this issue. When you have a tenant with thousands of mailboxes, getting information on the mailboxes using PowerShell will almost certainly timeout in the middle.
To avoid this, I have written a script that will cut the mailboxes up into blocks of 1000 (by default), you can change this via command line. It will then disconnect and re-connect again to help avoid the connection time-out.
Download
v.0.1 - 2017-09-13 - Get-MailboxRecursive.v.0.1.zip
To avoid this, I have written a script that will cut the mailboxes up into blocks of 1000 (by default), you can change this via command line. It will then disconnect and re-connect again to help avoid the connection time-out.
Download
v.0.1 - 2017-09-13 - Get-MailboxRecursive.v.0.1.zip
No comments:
Post a Comment