mtiberia
Canada
Asked
— Edited
I have an ebbed computer running Windows 8, that has to shut down gracefully when the power is switched off.
I have a script written but ARC won't allow a shutdown unless you click " No " . Which is a problem with no keyboard, monitor etc.
Tried to Google it but am having no luck.
Thanks
You could try using autohotkey to have a script which presses the no button, but I have had limited success using it on Windows 8.1 (works great on my Windows 7 machine).
There are probably other solutions.
Of course the trick is having Windows not shut down whatever you are using to generate the key press before it shuts down ARC.
I am not aware of a way to disable the dialog in ARC.
Have you thought about just having the computer sleep instead of shut down?
Alan
Thanks Alan, hibernation mode works but I need the computer to power down. Apparently you can use the " Local Group Policy Editor to turn off automatic termination of applications that block or cancel shutdown policy settings " , but for the life of me I can't seem to find it on my computer.
Can't find Local Group Policy Editor. or the setting in it.
Group Policy Editor can be fond by opening a command prompt (probably want to do as admin) and typing gpedit [enter]
Alan
These are the directions I believe:
http://www.addictivetips.com/windows-tips/disable-auto-termination-of-applications-that-block-windows-8-shutdown/
Group Policy Editor (gpedit.msc) is only in Windows 8 Pro and Windows 8 Enterprise editions. stress
Thanks guys I figured it out, just had to split the instructions on separate lines. Force ARC to close and then shutdown.
os.system("shutdown.exe /f") os.system("shutdown.exe /p")
See: https://synthiam.com/Community/Questions/7958