I have written a program in VB.NET VS2010 that will submit mailbox extract requests to an Exchange 2010 environment. It presents a status list view that shows submitted, queued, in progress, complete, and erred mailboxes. All of the Powershell commands are submitted synchronously.
When you are dealing with 10 or 20 mailboxes the user interface is fine, but when you are submitting hundreds it becomes cumbersome.
I would like to break up the submissions into 20 mailbox chunks. My thought is to present up to 10 status forms that would contain no more than 20 mailboxes per form. Each form would be an individual thread that would submit then monitor the status of the mailbox extracts.
My question is should I create a single Powershell runspace into Exchange and pass it to each thread or is it better to create an individual runspace in each thread.
Any thoughts would be appreciated.