I have a Hyper-V host machine with a number of guests. One of the guests is a Linux VM running a vendor app that isn't exactly the most robust piece of software in the world. About once per week, maybe once every other week, the app just locks up and becomes unresponsive.
When the app locks up, I can login in to the Linux server and restart a service to fix everything. Obviously, rebooting the server has much the same effect, though it takes a couple minutes longer. I'd like to cut IT out of the process, and give the staff in the office that use the app the ability to restart the server themselves. That would be faster, since they'd cut out the part where they wait for IT to see and respond to the ticket, it would take some occasional work off our plate, and it would make the staff happier, since they'd feel they have more control of the situation.
How can I do this?
Powershell comes to mind, but I don't want to give them admin access to either the host or the guest. I also wouldn't want to leave the server name in a script somewhere in a way that's easy to find. These are some very non-technical staff, but any idiot can find and change a server name in a block of text. Maybe a powershell script that just kicks of a scheduled job setup with a user that does have the appropriate rights? All ideas welcome.
Restart-Computer -ComputerName
(and then wait for them to just typeRestart-Computer
and have their local computer reboot. :)