Good day,
In Win 8.1, I have set the following power button options:
Control Panel > Power Options > Choose what the power buttons do:
When I press the power button = Sleep.
Password protection on wakeup = Don't require a password.
"Turn on fast startup" is checked.
This does the following:
(1) When I press the power button, my system shuts down perfectly well, within a few seconds my harddisk blinkenlight goes from flashing blue to a sleepy orange.
(2) After that, I do physically disconnect the power supply (power cable).
(3) After several hours, I re-attach the power cable, and without further a-do (not even switching on the power button), the system is there where it was before doing (1).
Is there a shell command, which simulates exactly this shutdown behavior?
Shutdown.exe does not seem to have an appropriate argument, all tested options fail on (3): in most cases I have to manually switch on the power button and then go through the login procedure, i.e. swipe the intro screen away etc.
Alternately, is there an API function I can use? (Neither InitiateSystemShutdown nor SetSystemPowerState seem to work here, the former requires formal log-in, the latter shows no reaction on my notebook, whether fSuspend is True or False).
Thanks in advance!
In Win 8.1, I have set the following power button options:
Control Panel > Power Options > Choose what the power buttons do:
When I press the power button = Sleep.
Password protection on wakeup = Don't require a password.
"Turn on fast startup" is checked.
This does the following:
(1) When I press the power button, my system shuts down perfectly well, within a few seconds my harddisk blinkenlight goes from flashing blue to a sleepy orange.
(2) After that, I do physically disconnect the power supply (power cable).
(3) After several hours, I re-attach the power cable, and without further a-do (not even switching on the power button), the system is there where it was before doing (1).
Is there a shell command, which simulates exactly this shutdown behavior?
Shutdown.exe does not seem to have an appropriate argument, all tested options fail on (3): in most cases I have to manually switch on the power button and then go through the login procedure, i.e. swipe the intro screen away etc.
Alternately, is there an API function I can use? (Neither InitiateSystemShutdown nor SetSystemPowerState seem to work here, the former requires formal log-in, the latter shows no reaction on my notebook, whether fSuspend is True or False).
Thanks in advance!
My Computer
System One
-
- OS
- Win 8.1
- Computer type
- PC/Desktop