When concurrent operations for a user exceed the acceptable value, a PowerShell task fails.


  1. Modify the configuration for the service named winrm to set a higher value for MaxShellsPerUser.

    The acceptable value is 500 for 50 concurrent pipelines, with 5 PowerShell tasks for each pipeline.

  2. Run the following command:

    winrm set winrm/config/winrs '@{MaxShellsPerUser="500"}'

  3. Verify the configuration by running the following command:

    winrm get winrm/config

  4. Restart the winrm service.