Monday, September 23, 2013

Small issue in PSHVM30 VHOST manager TAB....

Thanks to a diligent user it was discovered that the Virtual Machine Path and Virtual Hard Disk Path were reversed.

This has now been fixed.....

It can be fixed several ways

You can edit your Hyperv.ps1 file with notepad and fix it by making sure stuff that is highlighted is changed as it is is shown below.
#~~< VHOSTmgr Input button 1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    $VHOSTmgrTextbox1 = New-Object System.Windows.Forms.TextBox
    $VHOSTmgrTextbox1.Location = New-Object System.Drawing.Size(10,275)
    $VHOSTmgrTextbox1.Size = New-Object System.Drawing.Size(200,170)
    $BrowseButtonVMGR1 = New-Object System.Windows.Forms.Button
    $BrowseButtonVMGR1.FlatStyle = [System.Windows.Forms.FlatStyle]::System
    $BrowseButtonVMGR1.Location = New-Object System.Drawing.Size(220,275)
    $BrowseButtonVMGR1.Size = New-Object System.Drawing.Size(250,23)
    $BrowseButtonVMGR1.Text = "Browse to Virtual Hard Disk Path..."
        $VMPATH = $Browser.SelectFolder("Choose your Virtual Machine Path - Cancel = No change", "C:\", [IntPtr]::Zero)
        $VHOSTmgrTextbox1.Text = $VMPATH}
   #~~< VHOSTmgr Input button 2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    $VHOSTmgrTextbox2 = New-Object System.Windows.Forms.TextBox
    $VHOSTmgrTextbox2.Location = New-Object System.Drawing.Size(10,305)
    $VHOSTmgrTextbox2.Size = New-Object System.Drawing.Size(200,170)
    $BrowseButtonVMGR2 = New-Object System.Windows.Forms.Button
    $BrowseButtonVMGR2.FlatStyle = [System.Windows.Forms.FlatStyle]::System
    $BrowseButtonVMGR2.Location = New-Object System.Drawing.Size(220,305)
    $BrowseButtonVMGR2.Size = New-Object System.Drawing.Size(250,23)
    $BrowseButtonVMGR2.Text = "Browse to Virtual Machine Path..."
        $VHDPATH = $Browser.SelectFolder("Choose your Virtual HardDisk Path- Cancel = No change", "C:\", [IntPtr]::Zero)
        $VHOSTmgrTextbox2.Text = $VHDPATH}

You can download an already fixed Hyperv.ps1 file from and then simply copy and over write your old hyperv.ps1

Or you can completely download the app (not recommended if you have made any customizations) and start over.

No comments:

Post a Comment