0

I am using psshutdown to turn off list of computers, but it seems ages to shutdown a list of 50+ PC's. It's shutting down them one by one, not all of them at the same time.

Is there any program or script to shutdown all PC's asynchronously, not one by one, even if i am feeding list?

Like some vbs script to create multiple instances of psshutdown.

Thanks.

1 Answers1

3

You could use a Powershell Workflow...

#Requires –Modules PSWorkflow

workflow Shutdown-PCs
{
   $computers = 'computer01','computer02','computer03','computer04'
   Foreach -parallel ($computer in $computers)
   {
        Stop-Computer -PSComputerName $computer -Force -Verbose

    }
}

Shutdown-PCs
Mike1980
  • 1,018
  • 7
  • 15