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

How to Schedule Auto shutdown when internet get disconnected?

Status
Not open for further replies.
Joined
Dec 28, 2014
Messages
477 (0.14/day)
System Name Rtxoned
Processor Intel i5 8600k
Motherboard Msi Z370 Sli Plus
Cooling Cooler Master Ml240r
Memory Corsair vengeance 8x2 DDR4 2400mhx
Video Card(s) Zotac Rtx 2080 Amp
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Display(s) Alienware 25” 240hz
Case Nzxt H700i
Power Supply Thermaltake toughpower 1000w 80+ Gold
Mouse Logitech 403
Keyboard Hyperx alloy fps mechanical keyboard Cherymx Blue
Software Windows 10
hi,
Is that possible to shutdown computer automatically when internet is disconnected or modem is turned off ? We also able to Set timer about 10 mins to shutdown, actually i dont have advanced ups, i will buy later, currently im using apc rs1100va it doesnt have auto shutdown feature, so is that possible to do that?
 
Joined
Jan 17, 2010
Messages
12,280 (2.36/day)
Location
Oregon
System Name Juliette // HTPC
Processor Intel i7 9700K // AMD Ryzen 5 5600G
Motherboard ASUS Prime Z390X-A // ASRock B550 ITX-AC
Cooling Noctua NH-U12 Black // Stock
Memory Corsair DDR4 3600 32gb //G.SKILL Trident Z Royal Series 16GB (2 x 8GB) 3600
Video Card(s) ASUS RTX4070 OC// GTX 1650
Storage Samsung 970 EVO NVMe 1Tb, Intel 665p Series M.2 2280 1TB // Samsung 1Tb SSD
Display(s) ASUS VP348QGL 34" Quad HD 3440 x 1440 // 55" LG 4K SK8000 Series
Case Seasonic SYNCRO Q7// Silverstone Granada GD05
Audio Device(s) Focusrite Scarlett 4i4 // HDMI to Samsung HW-R650 sound bar
Power Supply Seasonic SYNCRO 750 W // CORSAIR Vengeance 650M
Mouse Cooler Master MM710 53G
Keyboard Logitech 920-009300 G512 SE
Software Windows 10 Pro // Windows 10 Pro
There is a wake on lan feture. It might go to sleep with no activity. Never tried. Also check task scheduler for shut down by time
 
Joined
Dec 28, 2014
Messages
477 (0.14/day)
System Name Rtxoned
Processor Intel i5 8600k
Motherboard Msi Z370 Sli Plus
Cooling Cooler Master Ml240r
Memory Corsair vengeance 8x2 DDR4 2400mhx
Video Card(s) Zotac Rtx 2080 Amp
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Display(s) Alienware 25” 240hz
Case Nzxt H700i
Power Supply Thermaltake toughpower 1000w 80+ Gold
Mouse Logitech 403
Keyboard Hyperx alloy fps mechanical keyboard Cherymx Blue
Software Windows 10
There is a wake on lan feture. It might go to sleep with no activity. Never tried. Also check task scheduler for shut down by time
Task scheduler looks like difficult thing, i will try it today.
 
Joined
Jan 5, 2006
Messages
17,794 (2.66/day)
System Name AlderLake / Laptop
Processor Intel i7 12700K P-Cores @ 5Ghz / Intel i3 7100U
Motherboard Gigabyte Z690 Aorus Master / HP 83A3 (U3E1)
Cooling Noctua NH-U12A 2 fans + Thermal Grizzly Kryonaut Extreme + 5 case fans / Fan
Memory 32GB DDR5 Corsair Dominator Platinum RGB 6000MHz CL36 / 8GB DDR4 HyperX CL13
Video Card(s) MSI RTX 2070 Super Gaming X Trio / Intel HD620
Storage Samsung 980 Pro 1TB + 970 Evo 500GB + 850 Pro 512GB + 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) Panasonic SA-PMX94 / Realtek onboard + B&O speaker system / Harman Kardon Go + Play / Logitech G533
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 11 / Windows 10
Benchmark Scores Cinebench R23 (Single Core) 1936 @ stock Cinebench R23 (Multi Core) 23006 @ stock
Joined
Dec 28, 2014
Messages
477 (0.14/day)
System Name Rtxoned
Processor Intel i5 8600k
Motherboard Msi Z370 Sli Plus
Cooling Cooler Master Ml240r
Memory Corsair vengeance 8x2 DDR4 2400mhx
Video Card(s) Zotac Rtx 2080 Amp
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Display(s) Alienware 25” 240hz
Case Nzxt H700i
Power Supply Thermaltake toughpower 1000w 80+ Gold
Mouse Logitech 403
Keyboard Hyperx alloy fps mechanical keyboard Cherymx Blue
Software Windows 10

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.63/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
You could "run a program"
shutdown.exe -s -f -t 0 -c "Internet disconnected."

-s = shutdown
-f = force applications to close
-t 0 = don't wait to shutdown
-c = logged message for shutting down


It could be an issue with user rights. You may need to run the task as an admin user providing the credentials to elevate to said user.
 
Joined
Dec 28, 2014
Messages
477 (0.14/day)
System Name Rtxoned
Processor Intel i5 8600k
Motherboard Msi Z370 Sli Plus
Cooling Cooler Master Ml240r
Memory Corsair vengeance 8x2 DDR4 2400mhx
Video Card(s) Zotac Rtx 2080 Amp
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Display(s) Alienware 25” 240hz
Case Nzxt H700i
Power Supply Thermaltake toughpower 1000w 80+ Gold
Mouse Logitech 403
Keyboard Hyperx alloy fps mechanical keyboard Cherymx Blue
Software Windows 10
You could "run a program"
shutdown.exe -s -f -t 0 -c "Internet disconnected."

-s = shutdown
-f = force applications to close
-t 0 = don't wait to shutdown
-c = logged message for shutting down


It could be an issue with user rights. You may need to run the task as an admin user providing the credentials to elevate to said user.
Omg thanks.
i tried this now, when is happening, is when i restart pc it get shutdown always,
is there any way that we can tell the difference to pc about EHTERNET is unplugged btw Ethernet is plugged and internet is not working.
this event will create problem when theres internet problem but modem is working, a 1 second of interruption can shutdown whole PC,
i just want this event work on when Electricity is turned off(MODEM is not connected with UPS)
so when electricity goes off my system gets turned off. not on internet problem.
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.63/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
Plug UPS into computer (serial or USB cable) and use the software for the UPS to power off system?
 
Joined
Dec 28, 2014
Messages
477 (0.14/day)
System Name Rtxoned
Processor Intel i5 8600k
Motherboard Msi Z370 Sli Plus
Cooling Cooler Master Ml240r
Memory Corsair vengeance 8x2 DDR4 2400mhx
Video Card(s) Zotac Rtx 2080 Amp
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Display(s) Alienware 25” 240hz
Case Nzxt H700i
Power Supply Thermaltake toughpower 1000w 80+ Gold
Mouse Logitech 403
Keyboard Hyperx alloy fps mechanical keyboard Cherymx Blue
Software Windows 10
Joined
Jun 11, 2008
Messages
576 (0.10/day)
System Name Epsilon
Processor A12-9800E 35watts
Motherboard MSI Grenade AM4
Cooling Stock
Memory 2x4GB DDR4 2400 Kingston Hyper X
Video Card(s) Radeon R7 (IGP / APU)
Storage Samsung Spinpoint F1
Display(s) AOC 29" Ultra wide
Case Generic
Power Supply Antec Earthwatts 380w
Software Windows 10
Omg thanks.
i tried this now, when is happening, is when i restart pc it get shutdown always,
is there any way that we can tell the difference to pc about EHTERNET is unplugged btw Ethernet is plugged and internet is not working.
this event will create problem when theres internet problem but modem is working, a 1 second of interruption can shutdown whole PC,
i just want this event work on when Electricity is turned off(MODEM is not connected with UPS)
so when electricity goes off my system gets turned off. not on internet problem.

I think I know what you mean, so what's happening is that the computer shutdowns when you turn it on, as it detects there's no internet (because system is booting)
I would try this:

shutdown -s -f -t 60 -c "Internet disconnected."

and

shutdown /a

the first command will shutdown your computer after 60 seconds (-t 60)
the other command cancels the shutdown procedure, just program it when internet comes back
 
Joined
Dec 28, 2014
Messages
477 (0.14/day)
System Name Rtxoned
Processor Intel i5 8600k
Motherboard Msi Z370 Sli Plus
Cooling Cooler Master Ml240r
Memory Corsair vengeance 8x2 DDR4 2400mhx
Video Card(s) Zotac Rtx 2080 Amp
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Display(s) Alienware 25” 240hz
Case Nzxt H700i
Power Supply Thermaltake toughpower 1000w 80+ Gold
Mouse Logitech 403
Keyboard Hyperx alloy fps mechanical keyboard Cherymx Blue
Software Windows 10
I think I know what you mean, so what's happening is that the computer shutdowns when you turn it on, as it detects there's no internet (because system is booting)
I would try this:

shutdown -s -f -t 60 -c "Internet disconnected."

and

shutdown /a

the first command will shutdown your computer after 60 seconds (-t 60)
the other command cancels the shutdown procedure, just program it when internet comes back
omg thank you too, you both made my day, expert peoples in this forum. helped alot..
i also wish if theres are setting to abort the event internet gets back in few seconds,
this event even shutting down when internet goes and unplugged, on both.
wanted to run on only internet unplugged instead of intruption( traingle sign)

im currently trying to make another event of 30 second delay, with shutdown /a cmd and enabling the settings of "start only if the following network is available"

EDIT----------UPDATE
oh my god guess what it is working,
actually my main motive was to save power,
Suppose if i use UPS usb one,
if my Pc is mining, and suddenly power is lost,
what that UPS will do, is try to keep run until 2% and it will shutdown, no doubt it will save data but it will waste all 100% battery juice, and then you need to charge,
and second more bad thing,
if UPS got 0% and suddenly power came, you started pc and started mining again, and power goes off again Pc will sudden power loss, it is still not safe,
this method will save power and saving power is best method to save money, less electricity bill.
 
Last edited:
Status
Not open for further replies.
Top