Press "Enter" to skip to content

Hyper-V console not showing any VMs

Reading Time: < 1 minute

Error: One morning my desktop PC came up with a following error while trying to access VMs on two remote Hyper-V servers: “Hyper-V encountered an error trying to access an object on computer ‘hostname’ because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running. If the service is running, try to perform the task again by using Run as Administrator.”

Fix: Run following command in Elevated PowerShell Window, it will recomplie Microsoft Object Format (MOF), which will fix the issue:

MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof
Microsoft (R) MOF Compiler Version 10.0.14393.0
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: C:\Windows\System32\WindowsVirtualization.V2.mof
MOF file has been successfully parsed
Storing data in the repository...
PS C:\Windows\system32>

Share & contribute
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.