Shutting down Windows 10 from CMD takes more time than usual....

Click For Summary
SUMMARY

The discussion focuses on the shutdown process of Windows 10 via the command prompt (CMD) compared to the graphical user interface (GUI). Users report that using the command 'shutdown /s' results in longer shutdown times, often taking twice as long as the GUI method. The command 'shutdown /s /hybrid /t 0 /f' significantly improves shutdown and startup speeds, making them comparable to the GUI. The conversation also touches on the implications of Windows Fast Startup and how it interacts with the shutdown process.

PREREQUISITES
  • Familiarity with Windows Command Prompt commands
  • Understanding of Windows Fast Startup feature
  • Knowledge of process management in Windows
  • Basic understanding of UEFI BIOS functions
NEXT STEPS
  • Research the command 'shutdown /s /hybrid' for optimized shutdown processes
  • Explore Windows Fast Startup settings and their impact on performance
  • Learn about Event Viewer for monitoring shutdown processes and logs
  • Investigate process management techniques in Windows for better system performance
USEFUL FOR

Windows system administrators, IT professionals, and users looking to optimize their shutdown and startup processes in Windows 10.

Wrichik Basu
Science Advisor
Insights Author
Gold Member
Messages
2,180
Reaction score
2,690
TL;DR
Why does Windows 10 take more time to shutdown if it is triggered from the command prompt rather than the usual shutdown button?
Just like a Linux computer can be made to shut down from the terminal using sudo poweroff, a Windows 10 PC can be shut down from the command prompt using shutdown /s.

I have, however, seen that Windows 10 takes more time to shut down if the command is triggered from CMD. In my laptop, it generally takes two times the time for usual shutdown using the GUI, unlike Linux, where shutting down from the terminal is perhaps faster than using the GUI. In addition, starting the laptop (running Win 10) after it was shut down from CMD takes more time too.

What is the difference between shutting down the PC from CMD compared to the normal shut down process using the GUI buttons?
 
Computer science news on Phys.org
My WAG involves running processes. Command shutdown might be waiting for orderly process shut down while the GUI forces time out. Do you see different prompts if, say, an unsaved Word file is open before shutting down?
 
  • Like
Likes phinds
Google 'Windows fast startup'.
 
  • Like
Likes hmmm27
pbuk said:
Google 'Windows fast startup'.
What does fast startup have to do with slow shutdown? I'm not saying it doesn't just curious what the connection is if there is one.
 
I'm guessing there's a default time before shutdown... yup the /t switch
 
  • Informative
  • Like
Likes jedishrfu and phinds
hmmm27 said:
I'm guessing there's a default time before shutdown... yup the /t switch
Forgot to mention - i have set /t to 0.
Klystron said:
Do you see different prompts if, say, an unsaved Word file is open before shutting down?
If /t > 0, no prompt is shown. But in this case, no application is open when i am shutting down.
 
Yeah, I thought it seemed too easy... perhaps looking at the syslog (whatever M$ calls it) could shed some light... Event Viewer.
 
phinds said:
What does fast startup have to do with slow shutdown? I'm not saying it doesn't just curious what the connection is if there is one.
That's why I suggested a search :wink: but briefly fast startup works by loading a preconfigured kernel from disk which was saved during the previous shutdown (unless you disable fast startup), thus avoiding loading many separate driver files from disk as well as part of the (UEFI) BIOS bare metal boot routine.
 
  • Informative
Likes phinds
pbuk said:
That's why I suggested a search :wink: but briefly fast startup works by loading a preconfigured kernel from disk which was saved during the previous shutdown (unless you disable fast startup), thus avoiding loading many separate driver files from disk as well as part of the (UEFI) BIOS bare metal boot routine.
For fast startup, the command should be shutdown /s /hybrid. Will try it tonight and post the results.

Update: Using the command shutdown /s /hybrid /t 0 /f makes the shutdown and startup quite fast, almost as fast as using the GUI buttons.
 
Last edited:
  • #10
Try <shift> clicking the GUI Shutdown button.

(ie: what pbuk said)
 

Similar threads

Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 123 ·
5
Replies
123
Views
19K
Replies
3
Views
11K
  • · Replies 37 ·
2
Replies
37
Views
7K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
2
Views
7K