Service 'Hyper-V Virtual Machine Management (vmms)' cannot be stopped


On Weekend, my Hyper-V Server was sudden Shutdown due to Power Failure, I try to go and diagnose this error and try to restart Hyper-V vmms Service through Windows Power Shell, I try as below;

Restart-Service vmms” but I was surprised to see that it encounter an error as below;
========================== ERROR =======================================
PS C:\Users\rizwan.ahmad> Restart-Service vmms
Restart-Service : Service 'Hyper-V Virtual Machine Management (vmms)' cannot be stopped due to the following error: Can
not open vmms service on computer '.'.
At line:1 char:16
+ Restart-Service <<<<  vmms
    + CategoryInfo          : CloseError: (System.ServiceProcess.ServiceController:ServiceController) [Restart-Service
   ], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStopService,Microsoft.PowerShell.Commands.RestartServiceCommand
======================== ERROR Ends======================================

SOLUTION : -

Vmms.exe (by default in the %windows%\system32 directory) is the service that uses the Msvm_VirtualSystemManagementService WMI object to perform Virtual System Management related operations in Hyper-V and the Hyper-V Manager, We need Administrator rights on System32 folder to execute a command, to do so, we will go as under;
Go to Start -> All Programs -> Accessories > Windows PowerShell -> Windows PowerShell -> Right Click on it as run as Administrator as;
This was the issue that I get while running this command, if you are facing Event ID 14050 & Failed to register service Principal name on Hyper-V, check linked post

Comments