A little preface to the situation: I'm working at a hospital where a lot of machines are left running, sometimes overnight, and I want to put forward a proposal of shutting down inactive and not logged in machines remotely from the server host in order to reduce overhead running costs. However I know next to nothing about server administration, and don't know what the server configuration is like (other than it's a Windows orientated setup).
Although people might suggest leaving it with the IT department, they tend to act very slowly, sometimes even sitting on or avoiding solutions to problems (for example, asking for 7zip to be installed hasn't been answered in 2 weeks, but if a computer just needs a clock reset, they're all over it by the next day).
So I want to present a complete solution ready to go for the IT department that should ideally be as simple as possible to implement (IE it shouldn't require any additional software to be installed as the IT department will produce a flurry of excuses - likely for budget reasons - as to why they won't install it or they're argue it's too complex, will take a lot of time etc).
The server-side program should ideally:
- Check to see if the computer was active in the last 5 minutes (IE keyboard or mouse movement or whatever is closest), and
- Check to see if anyone is logged in if it hasn't been active (staff might need to urgently leave their computers)
If it finds the computer hasn't been active and isn't logged in, it should force the computer to shutdown. Ideally, this should have the ability to be done manually, at a set time (IE 6pm after everyone from the administrative departments have most likely gone home) and at regular intervals (every hour). Even just a manual option would be acceptable.
Is there any way to achieve this?