Download

Turn off Windows 10 when game stops

I’m building a machine that only plays a game. You power it on, the game starts automatically in full screen. When you quit the game, the pc turns off.
The start up part is easy but shutting down windows when a game stops seems a bit more tricky. Does anyone have any idea how to do this?

Thanks for any help!

shutdown.exe /s /t 00

thats the script you would make in a batch file. Windows 7-10
One issue you will run into is that you cant bypass ALT+TAB or WINDOWS+TAB due to it being built in the registry. That will be the downfall.
Example: i boot up the game, alt+tab to windows desktop, disable windows scripting service, close the game. This would allow me to do anything as a normal computer. Rebooting will not resolve, since, i stopped the scripting service itself. There are several ways around all this, via Mr Google, but, keep in mind, there is always a way back to desktop (unless you dev some kiosk software to block).

i don’t totally understand what you mean by downfall…it would be good to have the ability to ALT+TAB back to windows in case I need to fix anything or if one day I want to put the computer back to a normal computer.Or do you mean I couldn’t ALT+TAB?
thanks for the help!

I think he means that if you want others to play the game but not mess with the OS then it’s a problem.

it’s just for someone’s personal use in their home, not in a public place. so being able to alt+tab out would be good in case they ever want to change how the computer is used.
I found this and it seems to work ok so far:

thx for the help