Hi, a few weeks ago I installed a Windows Server 2012 in production environment, some days later I found that the “Hyper-V Virtual Machine Management” is stoped.
I start the vmms service and it’s stopped again at the next day, searching about this issue, I found this post in technet, in the post some people resolve the problems uninstalling the System Center Configuration Manager 2012 Agent from the Hyper-V Host, in my case this is not the best option, I use the Agent for a lot of activities.
Reading the Hyper-V Event Viewer I found some EentID 19040 when the service is stopping, I create a scheduled task that use this events as trigger. in the action I write a powershell line that start the vmms service again
This is not a definitive solution, just a workaround.
This are the options to create the scheduled task.
Select “Run whether user is logged or not” and use an account with rights in the server.
In the trigger tab click new adn select a event trigger.
In the event trigger use Log, Source and EventID from the previous image
In the Action tab click at new and select Start a program.
In program use powershell and in arguments write:
-command “sleep 30 ; start-service vmms”
It’s done, when the vmms service is stopped again by SCCM Agent, this task will start it again.