Multithreading over multiple servers #17
-
Hi Markus, Your script is really helping me in preparing our environment for the migration to EXO. Nor really an issue, but I am wondering how exactly you managed to get the multithreading to work over multiple servers. I am not new to PowerShell, but the runspaces are new territory. ;-) I would like to do something similar to clean up orphaned sids in our environment. Maybe you can give me some pointers on how to achieve this? Best regards, Duncan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Duncan, I am not a runspaces expert, but I'll show you my learning path. Good starting points are:
The first two articles cover the basic setup of runspaces. Boe Prox's article covers this, too, but goes more into detail how to share data with and between runspaces. After having set up your first few runspaces, it becomes easier and the focus switches to designing the data structures behind them- especially, if runspaces can modify data shared between them and the main script. If you can use PowerShell 7, the In Export-RecipientPermissions, the 'Combine temporary export files' task has an optional sub-task 'Pre-combine files', which could act as a learning example. |
Beta Was this translation helpful? Give feedback.
Hi Duncan,
I am not a runspaces expert, but I'll show you my learning path.
Good starting points are:
The first two articles cover the basic setup of runspaces. Boe Prox's article covers this, too, but goes more into detail how to share data with an…