1

I may be asking the wrong question, so some background: my company's IT pushes patches overnight, and either their scripts or Win7's built-in updater controls then force-restart my machine, killing all running jobs without saving anything. That's obviously bad from my point of view.
So: is there a way to set up a daily task in Task Scheduler that kills my Ethernet connection (and a matching task to re-enable it later on)? I am trying to alter various Registry items and Local Group Policy settings to block "remote wake" and so on, but suspect that I don't have sufficient Admin power to do so.

For that matter, if there's a foolproof way to block any and all forced restarts, I'd like to know that as well.

EDIT: I have modded the Registry as described in one of the links in Stop Windows 7 from forcefully shutting itself down when waiting to update , but have yet to see if that is sufficient.

1 Answers1

2

You can create two batch files and schedule them with two tasks

  1. Open cmd.exe and type netsh interface show interface to look up the right interface name
  2. Copy & paste each line in a seperate textfile and save them as enable.cmd and disable.cmd
    netsh interface set interface myinterface disabled
    netsh interface set interface myinterface enabled
    Replace myinterface with your own interface name
  3. Press Win+R and type taskschd.msc
  4. create two normal tasks and point them to your batch files
  5. Modify the trigger to execute the task at your desired time
nixda
  • 27,634