Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to run multithreaded Exchange powershell?

$
0
0

 

Does anyone have any examples of this?

I'd like to run this command on many computers simultaneously. If I can use code that is like c sharp thread start even better.

Thread t =newThread(newParameterizedThreadStart(myMethod));
t.Start(myParameterObject);

Thanks

ForEach ($server in $servers)

{

   Set-MailboxServer $server -DatabaseCopyActivationDisabledAndMoveNow $true;
    Set-MailboxServer $server -DatabaseCopyAutoActivationPolicy Blocked;

}


Viewing all articles
Browse latest Browse all 6937

Trending Articles