I give up, how do you install this

Feb 25, 2012 at 1:40 AM

I have tried over and over to get this to install, but I just can't figure it out.  All I get are these odd errors:

 

Image Version: 6.1.7600.16385


Error: 0x800f080c

Feature name NetFx2-ServerCore is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and tr
y the command again.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385


Error: 0x800f080c

Feature name MicrosoftWindowsPowerShell is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and tr
y the command again.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

About to create folder and copy Powershell module.
Press [ctrl][c] to abort or
Press any key to continue . . .
install.cmd\..\HyperV\disk.ps1
install.cmd\..\HyperV\En-us.ps1
install.cmd\..\HyperV\Helper.ps1
install.cmd\..\HyperV\hyperv.format.ps1xml
install.cmd\..\HyperV\HyperV.psd1
install.cmd\..\HyperV\Maml-Helper.XML
install.cmd\..\HyperV\maml-vm.xml
install.cmd\..\HyperV\maml-vmconfig.xml
install.cmd\..\HyperV\maml-vmDisk.xml
install.cmd\..\HyperV\MAML-VMNetwork.XML
install.cmd\..\HyperV\MAML-VMSnapshot.XML
install.cmd\..\HyperV\menu.ps1
install.cmd\..\HyperV\Network.ps1
install.cmd\..\HyperV\SnapShot.ps1
install.cmd\..\HyperV\v1Compatability.ps1
install.cmd\..\HyperV\vm.ps1
install.cmd\..\HyperV\VMConfig.ps1
       17 file(s) copied.

About to set registry entries for PowerShell script execution, module path and c
onsole settings
Press [ctrl][c] to abort or
Press any key to continue . . .

and then when it tries to run the registry update it throws some error about only importing binary objects.  When It's all done, the HyperV directory exists in C:\Program Files\modules but any attempt to include the module into my code completely fails. 

Feb 28, 2012 at 1:13 AM

I gave up trying to install this. I just created a directory in the root path of my tool and put the stuff in there, and then just call Import-Module like this:

 

$hyperv_path = Split-Path -parent $MyInvocation.MyCommand.Definition
Import-Module$hyperv_path"\HyperV" -Global -erroraction stop

Feb 29, 2012 at 4:43 PM

This was posted in another post, and I copied it from there.

1. Download latest version of pshyperv

2. Right-click on downloaded file, select properties, and click the Unblock button.

3. Extract the contents of the zip into a directory.  From elevated prompt, run install.cmd

4. Start PowerShell and ensure that you have execution policy set to RemoteSigned - Set-ExecutionPolicy RemoteSigned

5. Create a PowerShell profile on the system if you do not already have one.

6. $profile will give you the path of the profile.

7. Test-Path $profile will tell you if you have a profile already created.

8. If no profile, create one.  New-Item -Path $profile -Type file -Force

9. Open profile: notepad $profile

10. Place this command in profile: Import-Module 'C:\Program Files\modules\HyperV'