We have quite a lot of VMs on our esx servers and a lot of people using them. Because of the nature of our work, the majority are left idle "just in case". If we need to shut one down for any reason, we need to open it up in a console and sit and stare at the screen to see if any windows open or if the cursor moves. What I'm looking to do is figure out a way to see what user is using what vm (in other words to see who has what VM open in a console doing/about to do something).
Any help, links, articles, scripts or hints would be greatly appreciated.