Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

There is, as the error message states, no RunAsync switch for the Stop-VMGuest cmdlet.
The reason is that the underlying ShutdownGuest method also has no _Task suffix.

As an alternative, you could run each Stop-VMGuest via a Start-Job cmdlet.
Then the cmdlet runs in the background, and you can start multiple in parallel


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos