• We've upgraded our forums. Please post any issues/requests in this thread.

How to Schedule Auto shutdown when internet get disconnected?

Status
Not open for further replies.
Joined
Dec 28, 2014
Messages
308 (0.28/day)
Likes
27
System Name GamerStrix
Processor Intel i5 6600k
Motherboard Asus Z170 Gaming Pro
Cooling Cooler Master Hyper 212 Evo
Memory GSKILL DDR4 x 2 2133Mhz
Video Card(s) MSI GAMING X Gtx 1070
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Case Cooler Master HAF912 Advance
Power Supply Corsair Vs650 650w 50AMP
Software Windows 10
#1
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
10,041 (3.47/day)
Likes
6,646
Location
Oregon
System Name Delta // Alpha-HTPC
Processor Intel i7 6700K // Intel i5 4570
Motherboard GIGABYTE Z270X-Gaming K7 // Gigabyte H97M -D3H
Cooling Corsair H80i V2 // Silverstone NT-06 Pro
Memory Corsair DDR4 3000 32gb //G.SKILL Ripjaws X Series 8GB 1600
Video Card(s) EVGA GTX980ti// EVGA GTX 1050ti
Storage Samsung 950 Pro 512, 2 Tb FireCuda// Samsung 850 Pro, 1 X 4 Tb HGST, 1 x 6Tb Toshiba
Display(s) ASUS PB278Q 27" 1440X 2560 // 50" Samsung Plasma 720p
Case Corsair Obsidian Series 550D // Silverstone Granada GD05
Audio Device(s) ASUS Xonar DGX // HDMI to Yamaha RX V571
Power Supply Corsair TX850M // SeaSonic G Series 550w
Mouse Logitech G502
Keyboard Corsair K70
Software Windows 10 64bit // Windows 7 64bit with Kodi
#2
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
308 (0.28/day)
Likes
27
System Name GamerStrix
Processor Intel i5 6600k
Motherboard Asus Z170 Gaming Pro
Cooling Cooler Master Hyper 212 Evo
Memory GSKILL DDR4 x 2 2133Mhz
Video Card(s) MSI GAMING X Gtx 1070
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Case Cooler Master HAF912 Advance
Power Supply Corsair Vs650 650w 50AMP
Software Windows 10
#3
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.
 

P4-630

The Way It's Meant to be Played
Joined
Jan 5, 2006
Messages
9,203 (2.11/day)
Likes
8,966
Location
Vinewood
System Name Sansaya / Sansaya Laptop
Processor Intel i5 6500 / Intel i3 7100U
Motherboard Asus Z170 Pro Gaming / HP 83A3 (U3E1)
Cooling Cooler Master Hyper 212 Evo + Thermal Grizzly Kryonaut + Scythe 1200rpm + 4 case fans / Fan
Memory 16GB DDR4 Corsair Vengeance LPX 3000MHz CL15 / 6GB DDR4 Samsung 2400MHz CL15
Video Card(s) MSI GTX1070 Gaming X 8GB / Intel HD620
Storage Samsung 850 Pro 512GB + Hitachi 2.5" 7200rpm 750GB / Samsung 256GB M.2 SSD
Display(s) 23.8" Dell S2417DG 165Hz G-Sync 1440p + 21.5" LG 22MP67VQ IPS 60Hz 1080p / 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 Be quiet! Straight Power 10 500 Watt CM / Powerbrick
Mouse Logitech MX Anywhere 2 Laser wireless / Logitech Nano Laser wireless
Keyboard RAPOO E9270P Black 5GHz wireless / HP backlit
Software Windows 8.1 x64 / Windows 10
Benchmark Scores Superposition 14106 (1080p medium) Fire Strike 21169 graphics score. Valley 8xAA 4218
#4
Joined
Dec 28, 2014
Messages
308 (0.28/day)
Likes
27
System Name GamerStrix
Processor Intel i5 6600k
Motherboard Asus Z170 Gaming Pro
Cooling Cooler Master Hyper 212 Evo
Memory GSKILL DDR4 x 2 2133Mhz
Video Card(s) MSI GAMING X Gtx 1070
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Case Cooler Master HAF912 Advance
Power Supply Corsair Vs650 650w 50AMP
Software Windows 10
#5

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
20,922 (6.24/day)
Likes
10,023
Location
IA, USA
System Name BY-2015
Processor Intel Core i7-6700K (4 x 4.00 GHz) w/ HT and Turbo on
Motherboard MSI Z170A GAMING M7
Cooling Scythe Kotetsu
Memory 2 x Kingston HyperX DDR4-2133 8 GiB
Video Card(s) PowerColor PCS+ 390 8 GiB DVI + HDMI
Storage Crucial MX300 275 GB, Seagate 6 TB 7200 RPM
Display(s) Samsung SyncMaster T240 24" LCD (1920x1200 HDMI) + Samsung SyncMaster 906BW 19" LCD (1440x900 DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay
Audio Device(s) Realtek Onboard, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse SteelSeries Sensei RAW
Keyboard Tesoro Excalibur
Software Windows 10 Pro 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
#6
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
308 (0.28/day)
Likes
27
System Name GamerStrix
Processor Intel i5 6600k
Motherboard Asus Z170 Gaming Pro
Cooling Cooler Master Hyper 212 Evo
Memory GSKILL DDR4 x 2 2133Mhz
Video Card(s) MSI GAMING X Gtx 1070
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Case Cooler Master HAF912 Advance
Power Supply Corsair Vs650 650w 50AMP
Software Windows 10
#7
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
20,922 (6.24/day)
Likes
10,023
Location
IA, USA
System Name BY-2015
Processor Intel Core i7-6700K (4 x 4.00 GHz) w/ HT and Turbo on
Motherboard MSI Z170A GAMING M7
Cooling Scythe Kotetsu
Memory 2 x Kingston HyperX DDR4-2133 8 GiB
Video Card(s) PowerColor PCS+ 390 8 GiB DVI + HDMI
Storage Crucial MX300 275 GB, Seagate 6 TB 7200 RPM
Display(s) Samsung SyncMaster T240 24" LCD (1920x1200 HDMI) + Samsung SyncMaster 906BW 19" LCD (1440x900 DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay
Audio Device(s) Realtek Onboard, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse SteelSeries Sensei RAW
Keyboard Tesoro Excalibur
Software Windows 10 Pro 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
#8
Plug UPS into computer (serial or USB cable) and use the software for the UPS to power off system?
 
Joined
Dec 28, 2014
Messages
308 (0.28/day)
Likes
27
System Name GamerStrix
Processor Intel i5 6600k
Motherboard Asus Z170 Gaming Pro
Cooling Cooler Master Hyper 212 Evo
Memory GSKILL DDR4 x 2 2133Mhz
Video Card(s) MSI GAMING X Gtx 1070
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Case Cooler Master HAF912 Advance
Power Supply Corsair Vs650 650w 50AMP
Software Windows 10
#9
Joined
Jun 11, 2008
Messages
496 (0.14/day)
Likes
115
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
#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
308 (0.28/day)
Likes
27
System Name GamerStrix
Processor Intel i5 6600k
Motherboard Asus Z170 Gaming Pro
Cooling Cooler Master Hyper 212 Evo
Memory GSKILL DDR4 x 2 2133Mhz
Video Card(s) MSI GAMING X Gtx 1070
Storage 250gb SSD, 500Gb SATA, 250Gb SATA
Case Cooler Master HAF912 Advance
Power Supply Corsair Vs650 650w 50AMP
Software Windows 10
#11
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.