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)
    $frmVHOSTmgr.Controls.Add($VHOSTmgrTextbox1)
    $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..."
    $BrowseButtonVMGR1.Add_Click({
        $VMPATH = $Browser.SelectFolder("Choose your Virtual Machine Path - Cancel = No change", "C:\", [IntPtr]::Zero)
If($VMPATH) {
        [system.windows.forms.messagebox]::show($VMPATH)
        $VHOSTmgrTextbox1.Text = $VMPATH}
    })
   $frmVHOSTmgr.Controls.Add($BrowseButtonVMGR1)
 
   #~~< 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)
    $frmVHOSTmgr.Controls.Add($VHOSTmgrTextbox2)
    $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..."
    $BrowseButtonVMGR2.Add_Click({
        $VHDPATH = $Browser.SelectFolder("Choose your Virtual HardDisk Path- Cancel = No change", "C:\", [IntPtr]::Zero)
If($VHDPATH) {
        [system.windows.forms.messagebox]::show($VHDPATH)
        $VHOSTmgrTextbox2.Text = $VHDPATH}
    })

You can download an already fixed Hyperv.ps1 file from
https://skydrive.live.com/?cid=f8e137f6fd1c75f2&id=F8E137F6FD1C75F2%21105&Bsrc=Share&Bpub=SDX.SkyDrive&sc=Documents#cid=F8E137F6FD1C75F2&id=F8E137F6FD1C75F2%21213&sc=Documents 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)
pshvm.codeplex.com and start over.

No comments:

Post a Comment