How to enable vmcompute.exe and HNS?

Edward Olmstead 5 Reputation points
2026-04-22T19:32:56.6466667+00:00

the virtual machine has missing parts vmcompute and HNS. need to use a new softwre package

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments

2 answers

Sort by: Newest
  1. Scott Nguyen 1,965 Reputation points Independent Advisor
    2026-04-22T20:18:15.5666667+00:00

    Hello,

    First, you should check C:\Windows\System32\ directory to see if they appear missing from your service list. If they're missing, you should restore both the Host Compute Service and Host Networking Service by re-enabling the native Windows features. Just open PowerShell as an Administrator and run the command Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V, Containers -All to force the system to register the vmcompute.exe binary and the HNS stack properly.

    If you find my answer useful, please mark it as the "Accepted Answer" so other members can find the solution easily. Your help in supporting the community is much appreciated!
    Best regards,
    Scott

    Was this answer helpful?

    10+ people found this answer helpful.

  2. AI answer

    2026-04-22T19:33:08.2633333+00:00

    Vmcompute.exe (the Host Compute Service) and HNS (Host Network Service) are core Windows components that are enabled by turning on the Windows virtualization features and ensuring virtualization support in firmware. They are not installed as separate software packages.

    Use these steps on the Hyper-V host:

    1. Enable hardware virtualization in firmware (UEFI/BIOS)
      • Restart the computer and enter UEFI/BIOS setup.
      • Locate the CPU virtualization setting (for example, Intel VT-x/VMX or AMD-V) and enable it.
      • Save changes and reboot.
      • If unsure how to do this, follow the vendor-specific guidance for the PC manufacturer (Acer, Asus, Dell, HP, Lenovo) or device documentation as described in the virtualization article.
    2. Turn on Windows virtualization features
      • In Windows, select Start, type Windows features, and select Turn Windows features on or off.
      • In the Windows Features dialog, enable at least:
        • Virtual Machine Platform (this is required for modern VM/container scenarios and uses vmcompute.exe and HNS).
        • If using Hyper-V, also enable Hyper-V (Hyper-V Platform and Hyper-V Management Tools).
      • Select OK and restart the computer when prompted.
    3. Verify that vmcompute.exe and HNS are running
      • After reboot, open Task ManagerDetails and confirm that vmcompute.exe is present when Hyper-V/Virtual Machine Platform is in use.
      • HNS is the service behind the Host Compute Network (HCN) API and is started automatically when virtualization networking is used (for example, when creating Hyper-V virtual switches or container networks). There is no separate manual “enable” step beyond turning on the virtualization features.
    4. Prepare networking and disks for the new software package
      • The Host Compute System (HCS) and Host Compute Network (HCN) APIs assume that required host resources already exist:
        • Create or provide virtual hard disks (VHD/VHDX) for VMs.
        • Configure networking (for example, Hyper-V virtual switches or HCN networks/endpoints) before creating VMs or containers.
      • The new software package should then use the HCS/HCN APIs to create and manage compute systems (VMs/containers) and their networks.

    If vmcompute.exe or HNS still appear to be missing or not working after enabling these features and rebooting, check for:

    • Antivirus or security software interfering with Hyper-V or vmcompute.exe, and configure exclusions as recommended for Hyper-V hosts.
    • Errors in the Windows Event Log related to vmcompute or Hyper-V services.

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.