Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 1264

New-VirtualDiskDrive not honouring -RunAsynchronously?

$
0
0
Can any one else reproduce New-VirtualDiskDrive not honouring -RunAsynchronously?

I'm literally doing:

$objHardDisk = Get-VirtualHardDisk | ?{$_.Name -eq "diskinlibrary.vhd"}
$objISO = get-iso | ?{$_.name -eq"isoinlibrary"}
$objVM = get-vm -name myVM

New-VirtualDiskDrive -VM $objVM -VirtualHardDisk $objHardDisk -IDE `
    -Bus 0 -LUN 0 -Filename $strFileName -RunAsynchronously

And control is not returned until creation of the disk is complete. 

Help:
"    -RunAsynchronously
        Specifies that the job runs asynchronously so that control returns to the command shell immediately."
(Like you all did not know that and needed me to quote the help to you, sorry.)

:J

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>