• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to prevent accidental Windows shutdowns

Joined
Apr 9, 2018
Messages
670 (0.61/day)
Processor AMD Ryzen 5 5600X
Motherboard Asus B550-F Gaming (Wi-Fi)
Cooling Noctua NH-U9S
Memory 32GB G.Skill Ripjaws V 3600MHz CL18
Video Card(s) Asus GTX 1060 Dual 6GB
Storage 1TB Samsung 970 Evo M.2 NVMe
Display(s) Asus VS248H 1080p and Benq GW2255 1080p
Case Antec Three Hundred U3
Power Supply Be Quiet! Straight Power 11 650W Platinum
Mouse JSCO JNL-101k
Keyboard Logitech G710+
Posting this solution here for others who encounter the same problem.

I've been having accidental shutdown issues for years. You go to click on "Sleep", but any accidental mis-click usually lands on the "Shut Down" option instead. Of course Microsoft would place both options right next to each other.

The most elegant solution is to use the Group Policy Editor to enable the Shut Down Event Tracker:

1. Type gpedit.msc in RUN dialog box and press Enter to open the Group Policy Editor
2. Now go to: Computer Configuration -> Administrative Templates
3. Highlight the System folder
4. In the pane on the right, scroll down and double click on the Display Shutdown Event Tracker setting
5. Change the state to Enabled
6. Click Apply

The result is that whenever you click on "Shut Down" or "Restart", it will display an additional menu:

1611560514869.png


This can basically be treated as an "Are You Sure?" popup, where you can just click Continue and complete the shutdown. The "Sleep" option is unchanged.

The only downside is the "Other (Unplanned)" option is the default and will bring a popup window up after the next startup. Scrolling down one notch to the "Other (Planned)" option solves it. Otherwise, it works pretty well and isn't much of an inconvenience.
 
Last edited:
Joined
Jul 16, 2014
Messages
4,786 (1.94/day)
Location
SE Michigan
System Name Dumbass
Processor AMD-9370BE @4.6
Motherboard ASUS SABERTOOTH 990FX R2.0 +SB950
Cooling CM Nepton 280L
Memory G.Skill Sniper 16gb DDR3 2400
Video Card(s) GreenTeam 1080 Gaming X 8GB
Storage C:\SSD (240GB), D:\Seagate (2TB), E:\Western Digital (1TB)
Display(s) 1x Nixeus NX_EDG27, 2x Dell S2440L (16:9)
Case Phanteks Enthoo Primo w/8 140mm SP Fans
Audio Device(s) onboard (realtek?) SPKRS:Logitech Z623 200w 2.1
Power Supply Corsair HX1000i
Mouse Logitech G700s
Keyboard Logitech G910 Orion Spark
Software windows 10
Benchmark Scores https://i.imgur.com/aoz3vWY.jpg?2
I like the Win + X option, but you could change your power button ( Power Options in control panel ) to trigger Sleep instead of Shut Down or Restart.
 
Joined
Feb 20, 2020
Messages
1,688 (4.04/day)
Location
Texas
System Name Ghetto Rigs x299 & z490 & Q9550 Old timer
Processor 9940x with optimus sigV2 & 10900k with optimus foundation & Q9550 with EK Evo
Motherboard X299 Rampage VI Apex & z490 Maximus XII Apex & Acer WG43M
Cooling D5 combo/280 GTX/ VRM water block copper/280 GTX/ D5 Top/Optimus sigV2/TitanXp/Mora 360x2
Memory Trident-Z 3600C16 4x8gb & Trident-Z 3600c16 2x8gb & 4x2gb crucial
Video Card(s) Titan Xp & 1080ti ftw3 & evga 980ti gaming
Storage 970 evo plus 500gb & 970 evo 500gb many 2.5" ssd's and WD BLK hdd's
Display(s) 1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
Case D450 second floor for 2nd rad x2/ Cherry Entertainment center
Audio Device(s) Built in Realtek x2 with Insignia 2.0 sound bars & 1-LG sound bar
Power Supply evga 1200P2 & 1000P2 with APC AX1500 & 850P2 & CyberPower-GX1325U
Mouse Redragon Perdition x3
Keyboard G910 & G710+x2
Software Win-7 pro x3 and Linux Cinnamon 20.1x2 & win-10 pro x3
Hi,
Yeah really win+x+u+r = restart
Win+x+u+u = shutdown
I have hibernation off so no sleep functions I'm sure there is a shortcut key for sleep and hibernate.
 
Joined
Jan 5, 2006
Messages
11,429 (2.05/day)
System Name Desktop / Laptop
Processor Intel i7 6700K @ 4.5GHz (1.270 V) / Intel i3 7100U
Motherboard Asus Z170 Pro Gaming / HP 83A3 (U3E1)
Cooling Noctua NH-U12A 2 fans + Thermal Grizzly Kryonaut + 5 case fans / Fan
Memory 16GB DDR4 Corsair Vengeance LPX 3000MHz CL15 / 8GB DDR4 HyperX CL13
Video Card(s) MSI RTX 2070 Super Gaming X Trio / Intel HD620
Storage Samsung 970 Evo 500GB + Samsung 850 Pro 512GB + Samsung 860 Evo 1TB x2 / Samsung 256GB M.2 SSD
Display(s) 23.8" Dell S2417DG 165Hz G-Sync 1440p / 14" 1080p IPS Glossy
Case Be quiet! Silent Base 600 - Window / HP Pavilion
Audio Device(s) SupremeFX Onboard / Realtek onboard + B&O speaker system
Power Supply Seasonic Focus Plus Gold 750W / Powerbrick
Mouse Logitech MX Anywhere 2 Laser wireless / Logitech M330 wireless
Keyboard RAPOO E9270P Black 5GHz wireless / HP backlit
Software Windows 10 / Windows 10
My computers never sleep, it's either on or off with the power button.
 
Joined
Jul 25, 2006
Messages
8,388 (1.56/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 16GB (2 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Microsoft Wireless 5000
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
Of course Microsoft would place both options right next to each other.
:( Of course some automatically blame Microsoft for their own mistakes. :rolleyes: IMO, since Sleep and Shutdown are just two different sleep states, it only makes sense they be next to each other.

The "most elegant" solution, IMO, is to just walk away and let your computer go to sleep.

If you are in a public or semi-public place, pressing Win + L will instantly lock your computer so you can walk away and not worry about someone immediately stepping up to your computer and gain access. Then you can just let it go to sleep.
 
Joined
Nov 16, 2007
Messages
641 (0.13/day)
Location
Hampton Roads
Processor Xeon 5650
Motherboard SABERTOOTH X58
Cooling Fans
Memory 24 GB Kingston HyperX 1600
Video Card(s) gtx1060
Storage small ssd
Display(s) Dell 2001F, BenQ short throw
Case Lian Li
Audio Device(s) onboard
Power Supply X750
Software Mint 19.2
Benchmark Scores not so fast...
I Alt+F4 on the desktop. Oldie but a goodie.
 
Joined
Apr 9, 2018
Messages
670 (0.61/day)
Processor AMD Ryzen 5 5600X
Motherboard Asus B550-F Gaming (Wi-Fi)
Cooling Noctua NH-U9S
Memory 32GB G.Skill Ripjaws V 3600MHz CL18
Video Card(s) Asus GTX 1060 Dual 6GB
Storage 1TB Samsung 970 Evo M.2 NVMe
Display(s) Asus VS248H 1080p and Benq GW2255 1080p
Case Antec Three Hundred U3
Power Supply Be Quiet! Straight Power 11 650W Platinum
Mouse JSCO JNL-101k
Keyboard Logitech G710+
:( Of course some automatically blame Microsoft for their own mistakes. :rolleyes: IMO, since Sleep and Shutdown are just two different sleep states, it only makes sense they be next to each other.

The "most elegant" solution, IMO, is to just walk away and let your computer go to sleep.

If you are in a public or semi-public place, pressing Win + L will instantly lock your computer so you can walk away and not worry about someone immediately stepping up to your computer and gain access. Then you can just let it go to sleep.

I got into the habit of using the Sleep function every time I go AFK for any period of time. When the whole computer goes from using 60-90 watts at idle down to 1-3 watts on sleep, the power savings really add up throughout the day. That's like turning off a half dozen ceiling lights, so it's worth doing to bring the power usage down.

It's an option to set an automatic Sleep with a short 5min or 10min fuse, but then it's more of a compromise that doesn't save power for every single AFK period.

Hi,
Yeah really win+x+u+r = restart
Win+x+u+u = shutdown
I have hibernation off so no sleep functions I'm sure there is a shortcut key for sleep and hibernate.

I heard about those shortcuts but couldn't figure them out. They don't seem to work properly on Windows 10.
 
Joined
Jul 14, 2006
Messages
2,299 (0.43/day)
System Name It's just a computer
Processor i9-9900K Direct Die
Motherboard eVGA Z390 Dark
Cooling Dual D5T Vario, XSPC BayRes, Nemesis GTR560, NF-A14-iPPC3000PWM, NF-A14-iPPC2000, HK IV Pro Nickel
Memory G.Skill F4-4500C19D-16GTZKKE or G.Skill F4-3600C16D-16GTZ or G.Skill F4-4000C19D-32GTZSW
Video Card(s) eVGA RTX2080 FTW3 Ultra
Storage Samsung 960 EVO M.2
Display(s) LG 32GK650F
Case Thermaltake Xaser VI
Audio Device(s) Auzentech X-Meridian 7.1 2G/Z-5500
Power Supply Corsair AX1200
Mouse Logitech
Keyboard Logitech
Software Win7 Ultimate x64 SP1
Joined
Feb 20, 2020
Messages
1,688 (4.04/day)
Location
Texas
System Name Ghetto Rigs x299 & z490 & Q9550 Old timer
Processor 9940x with optimus sigV2 & 10900k with optimus foundation & Q9550 with EK Evo
Motherboard X299 Rampage VI Apex & z490 Maximus XII Apex & Acer WG43M
Cooling D5 combo/280 GTX/ VRM water block copper/280 GTX/ D5 Top/Optimus sigV2/TitanXp/Mora 360x2
Memory Trident-Z 3600C16 4x8gb & Trident-Z 3600c16 2x8gb & 4x2gb crucial
Video Card(s) Titan Xp & 1080ti ftw3 & evga 980ti gaming
Storage 970 evo plus 500gb & 970 evo 500gb many 2.5" ssd's and WD BLK hdd's
Display(s) 1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
Case D450 second floor for 2nd rad x2/ Cherry Entertainment center
Audio Device(s) Built in Realtek x2 with Insignia 2.0 sound bars & 1-LG sound bar
Power Supply evga 1200P2 & 1000P2 with APC AX1500 & 850P2 & CyberPower-GX1325U
Mouse Redragon Perdition x3
Keyboard G910 & G710+x2
Software Win-7 pro x3 and Linux Cinnamon 20.1x2 & win-10 pro x3
I got into the habit of using the Sleep function every time I go AFK for any period of time. When the whole computer goes from using 60-90 watts at idle down to 1-3 watts on sleep, the power savings really add up throughout the day. That's like turning off a half dozen ceiling lights, so it's worth doing to bring the power usage down.

It's an option to set an automatic Sleep with a short 5min or 10min fuse, but then it's more of a compromise that doesn't save power for every single AFK period.



I heard about those shortcuts but couldn't figure them out. They don't seem to work properly on Windows 10.
Hi,
More accurate description is win+x to open the list and type ur = restart or uu = shutdown
So sleep would be u and it's shortcut letter s maybe so us ?
 
Joined
Jul 25, 2006
Messages
8,388 (1.56/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 16GB (2 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Microsoft Wireless 5000
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
I got into the habit of using the Sleep function every time I go AFK for any period of time. When the whole computer goes from using 60-90 watts at idle down to 1-3 watts on sleep, the power savings really add up throughout the day. That's like turning off a half dozen ceiling lights, so it's worth doing to bring the power usage down.
Ummm, half dozen ceiling lights? Not really. Yes, if you have intentionally changed the Power Options defaults and have the computer and monitors to never turn off, it will add up. But if you have left the defaults alone, the computer will just go to sleep in 15 minutes or so anyway.
 
Joined
Apr 9, 2018
Messages
670 (0.61/day)
Processor AMD Ryzen 5 5600X
Motherboard Asus B550-F Gaming (Wi-Fi)
Cooling Noctua NH-U9S
Memory 32GB G.Skill Ripjaws V 3600MHz CL18
Video Card(s) Asus GTX 1060 Dual 6GB
Storage 1TB Samsung 970 Evo M.2 NVMe
Display(s) Asus VS248H 1080p and Benq GW2255 1080p
Case Antec Three Hundred U3
Power Supply Be Quiet! Straight Power 11 650W Platinum
Mouse JSCO JNL-101k
Keyboard Logitech G710+
Ummm, half dozen ceiling lights? Not really. Yes, if you have intentionally changed the Power Options defaults and have the computer and monitors to never turn off, it will add up. But if you have left the defaults alone, the computer will just go to sleep in 15 minutes or so anyway.

Conservative values are 60 watts idle for a standard quad core system plus 20 watts for a 1080p monitor. Depending on what lightbulb is common, most these days are around 8W (LED) to 15W (flourescent) each. Half a dozen bulbs is definitely a reasonable figure in most situations. Then it comes down to whether it's "worth" the saving, and at least in my situation it's a no-brainer. Others can decide for themselves. Personally I'm so used to using Sleep all the time that it's not an inconvenience at all.....except for that 1-in-100 click that shuts down the computer. Fixed that now though!
 
Joined
Feb 20, 2020
Messages
1,688 (4.04/day)
Location
Texas
System Name Ghetto Rigs x299 & z490 & Q9550 Old timer
Processor 9940x with optimus sigV2 & 10900k with optimus foundation & Q9550 with EK Evo
Motherboard X299 Rampage VI Apex & z490 Maximus XII Apex & Acer WG43M
Cooling D5 combo/280 GTX/ VRM water block copper/280 GTX/ D5 Top/Optimus sigV2/TitanXp/Mora 360x2
Memory Trident-Z 3600C16 4x8gb & Trident-Z 3600c16 2x8gb & 4x2gb crucial
Video Card(s) Titan Xp & 1080ti ftw3 & evga 980ti gaming
Storage 970 evo plus 500gb & 970 evo 500gb many 2.5" ssd's and WD BLK hdd's
Display(s) 1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
Case D450 second floor for 2nd rad x2/ Cherry Entertainment center
Audio Device(s) Built in Realtek x2 with Insignia 2.0 sound bars & 1-LG sound bar
Power Supply evga 1200P2 & 1000P2 with APC AX1500 & 850P2 & CyberPower-GX1325U
Mouse Redragon Perdition x3
Keyboard G910 & G710+x2
Software Win-7 pro x3 and Linux Cinnamon 20.1x2 & win-10 pro x3
Conservative values are 60 watts idle for a standard quad core system plus 20 watts for a 1080p monitor. Depending on what lightbulb is common, most these days are around 8W (LED) to 15W (flourescent) each. Half a dozen bulbs is definitely a reasonable figure in most situations. Then it comes down to whether it's "worth" the saving, and at least in my situation it's a no-brainer. Others can decide for themselves. Personally I'm so used to using Sleep all the time that it's not an inconvenience at all.....except for that 1-in-100 click that shuts down the computer. Fixed that now though!
Hi,
So what did you do.
 
Joined
Jul 25, 2006
Messages
8,388 (1.56/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 16GB (2 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Microsoft Wireless 5000
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
Conservative values are 60 watts idle for a standard quad core system plus 20 watts for a 1080p monitor.
I understand that. But my point is, ceiling lights tend to stay on continuously 8 - 10 - 12 hours per day, or even longer.

When you step away from your computer, it almost immediately goes idle. Then, if the defaults are left alone, the computers goes to sleep in 15 - 20 minutes and stays in that sleep mode until woken. That power consumption between the time it goes idle and goes to sleep is happening for just a few minutes, not hour after hour after hour, all day long.

Even at 60W, it would take whole lot of those 15-20 minute idle periods to consume 1KWh of energy. With the average price of 1KWh in the US being ~13.25 cents, I don't see this being an issue.

Extreme tree huggers might disagree, but then I doubt they would be leaving lights on all day either - or using computers that consume 60W when idle.
 
Top