Hi,
I'm trying to run the a method in parallel (Runs PowerShell scripts in different machines):
foreach (string machine in machines)
{
Thread myThread = new Thread(() => RunPS1Script(machine, script));
myThread.Start();
}
How can I set a timout for the above operation, for example 10 minutes. I mean, that each script should take at most 10 minus and all scripts are running in paraller.
Please, I need your help
Regards,
Nadeem
...
Go to the complete details ...