New-VirtualDiskDrive not honouring -RunAsynchronously?
Can any one else reproduceNew-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.)
January 21st, 2009 7:32pm

Jeremy,

I will look into this and get back with you.

Carmen
Free Windows Admin Tool Kit Click here and download it now
March 24th, 2009 7:05am

I just ran the same steps (without the $objISO since that variable is not used in the New-VirtualDiskDrive command) and it also did not run asynchronously. I'll check with the PM who owns New-VirtualDiskDrive.
May 6th, 2009 12:42am

Jeremy, This is a known bug that we are tracking, but it is not likely to be fixed for R2.

Regards,
Laurie

Free Windows Admin Tool Kit Click here and download it now
May 6th, 2009 1:46am

We stumbled across this bug today. So it did not get fixed in R2. :(

Is there a workaround?

January 9th, 2014 8:56pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics