Some issues

Sep 22, 2013 at 2:31 AM
It seems when configuring the vhost that you have the the virutal machine and Disk paths reversed. Or the summary is wrong.
Sep 23, 2013 at 2:58 PM
You are correct the buttons are reversed.. I fixed this you can either redownload the zip file or go to https://skydrive.live.com/?cid=f8e137f6fd1c75f2&id=F8E137F6FD1C75F2%21105&Bsrc=Share&Bpub=SDX.SkyDrive&sc=Documents#cid=F8E137F6FD1C75F2&id=F8E137F6FD1C75F2%21213&sc=Documents to get the fixed hypev.ps1 file..

Code that is now fixed if you simply edit your hyperv.ps1 file

~~< 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}
})