Hyper v module installation on server core

Hello everybody
on my laptop with windows 10 I have the Hyper v with two virtual machines, a windows server core 2016 and a windows nano server 2016. If I launch the command on server core (my version is in italiana language, I translate the errors in English):

Enter-PSSession -VMName “Nano01” -Credential Administrator

appears the error:

Enter-PSSession: The Hyper-V module for Windows PowerShell is not available on this computer.
In row: 1 car: 1

  • Enter-PSSession -VMName “Nano01” -Credential Administrator
  •    + CategoryInfo: NotInstalled: (:) [Enter-PSSession], ArgumentException
       + FullyQualifiedErrorId: HyperVModuleNotAvailable, Microsoft.PowerShell.Commands.EnterPSSessionCommand

If I launch the command on server core:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Management-PowerShell

this error appears:

Enable-WindowsOptionalFeature : Unable to read registry key.
In riga:1 car:1

  • Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V …
  •   + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
      + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

I’m stuck at this point

welcome to the forums.

If I got it right you can use the parameter -VMName only on the Hyper-V host - not on the guest. Your two virtuel machines see each other as normal computers. So if you want to create a PSSession from one virtual machine to the other you simply use -ComputerName.

To install the Hyper-V feature on a virtual machine it must support nested virtualization. As far as I remember does Windows 10 not support nested virtualization.

You are right, sorry for the silly question.

Never mind. Sometimes you can’t see the forest for the trees. :wink: :wink: