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.
![ScheduledTask1](https://i0.wp.com/www.diegogancedo.com.ar/blog/wp-content/uploads/2012/12/ScheduledTask1.png?resize=646%2C487)
Select “Run whether user is logged or not” and use an account with rights in the server.
![ScheduledTask2](https://i0.wp.com/www.diegogancedo.com.ar/blog/wp-content/uploads/2012/12/ScheduledTask2.png?resize=646%2C487)
In the trigger tab click new adn select a event trigger.
![ScheduledTask3](https://i0.wp.com/www.diegogancedo.com.ar/blog/wp-content/uploads/2012/12/ScheduledTask3.png?resize=605%2C523)
In the event trigger use Log, Source and EventID from the previous image
![ScheduledTask4](https://i0.wp.com/www.diegogancedo.com.ar/blog/wp-content/uploads/2012/12/ScheduledTask4.png?resize=646%2C487)
In the Action tab click at new and select Start a program.
![ScheduledTask5](https://i0.wp.com/www.diegogancedo.com.ar/blog/wp-content/uploads/2012/12/ScheduledTask5.png?resize=468%2C507)
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.
Like this:
Like Loading...