Create a virtual machine
asynchronously.
$vmCreationTask = New-VM -Name VM2 -VMHost $vmhost1 -ResourcePool MyRP01 -DiskGB 100 -MemoryGB 2 -RunAsync
The
RunAsync parameter
indicates that the command runs asynchronously. This means that in contrast to
a synchronous operation, you do not have to wait for the process to complete
before supplying the next command at the command line.
|