1

Closed

Add-VMDRIVE Bug

description

When called with a string value passed in it fails
 
Method invocation failed because [System.Object[]] doesn't contain a method named 'replace'.
At HyperV.ps1:205 char:35
  • $machineName=$machineName.replace( <<<< "*","%")
     
    It appears to be becuase of a superfluous comma, see line 743:
     
    if ($VM -is [String]) {$VM=(Get-VM -machineName $VM , -Server $server) }
     
    Works fine if you remove the comma before -Server.
Closed Jul 12, 2008 at 4:37 PM by jamesone

comments

jamesone wrote Jul 8, 2008 at 2:29 PM

Fixed in beta 0.9 ...

jamesone wrote Jul 12, 2008 at 4:35 PM

Now fixed. Thanks for reporting

** Closed by jamesone 7/8/2008 7:30 AM

jamesone wrote Jul 12, 2008 at 4:35 PM

jamesone wrote Jul 12, 2008 at 4:36 PM

** Closed by jamesone 7/12/2008 9:36 AM

jamesone wrote Jul 12, 2008 at 4:36 PM