Powershell 3.0 - Workflows - Limit number of parallel execution

后端 未结 3 1934
故里飘歌
故里飘歌 2021-02-20 15:40

I am cloning VMs on ESX server from template. Simplified code looks like this:

Workflow Create-VM {
  $List = 1..500
  foreach -parallel ($Elem in $List)
  {
            


        
3条回答
  •  清歌不尽
    2021-02-20 15:53

    Just wanted to add this detail, ThrottleLimit switch mentioned above is available in Powershell v4.0, its not available in v3.0. We have a mix of 2.0 and 3.0 servers

提交回复
热议问题