4

Possible Duplicate:
How to instruct Windows 8 NOT to perform a fast shutdown?

Windows 8 has a hybrid shutdown that has some (perhaps minor) downsides.

Hybrid shutdown is faster, so I do not want to turn it off permanently.

However, when I am sure that I am about to leave the stationary computer for a considerable amount of time, I would like to shut it down in a way that has no downsides at all (except for being slow, which is unimportant in that circumstance). (I suppose this could also install any pending windows updates.)

To clarify, I want to do the equivalent of a full restart (which would refresh the hyberfile), then a hybrid shutdown (which would save the new hyberfile, so that the next startup is fast)

I can think of two potential solutions:

  1. Temporarily switching to non-"fast startup" (and then automatically turning "fast startup" on again after startup)
  2. Do a proper reboot which is then immediately (and without user interaction) followed by a shutdown

Is there any way to automate either of those to make them really simple to do (perhaps by running a script)?

1 Answers1

1

Fast startup does not affect restarts. Therefore, you do not have to turn off the option.

Notice the screenshot below, the setting Turn on fast start-up, and in the description, Restart isn't affected.

enter image description here

From http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html

Note

The fast startup setting doesn't apply to Restart.


In regards to shutting down after restart (so that you have a hyberfile next time you start up), you can run a script using Group Policy.

To shut down/restart windows, you can use the shutdown command:

Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e | /o] [/hybrid]
[/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

No args    Display help. This is the same as typing /?.
/?         Display help. This is the same as not typing any options.
/i         Display the graphical user interface (GUI).
           This must be the first option.
/l         Log off. This cannot be used with /m or /d options.
/s         Shutdown the computer.
/r         Full shutdown and restart the computer.
/g         Full shutdown and restart the computer. After the system is
           rebooted, restart any registered applications.

I won't write the code for you, but essentially, you need two scripts. The first script, activates the slow shutdown. It needs to:

  • set a flag somewhere (create a file)
  • then restart

The second script is to be added to Group Policy. It needs to:

  • check if the flag is set, and if it is set:
    • reset the flag (delete a file)
    • shut down

The easiest way to set a flag is probably echo > filename.txt.

ronalchn
  • 4,551