Windows 10: Create task to disable or enable ethernet adapter Windows 10

  1.    19 Mar 2018 #1

    Create task to disable or enable ethernet adapter Windows 10


    I'm trying to create a couple tasks (or one if anyone can tell me how) to disable and re-enable my Ethernet adapter at a scheduled time.

    The following commands work fine from an elevated command prompt:
    disable: "netsh interface set interface “Ethernet” DISABLED"
    enable: "netsh interface set interface “Ethernet” ENABLED"

    But trying to run .bat or .cmd files by starting them directly or in task scheduler or setting up the command directly in the scheduled task don't seem to work (I even tried creating a shortcut to the bat/cmd file and setting it to run with admin privileges and it still won't work). I have the check box in the General tab selected in the task "run with highest privileges" and it still won't work.

    What am I missing?
      My ComputerSystem Spec

  2.    19 Mar 2018 #2

    Hi, manually running scheduled task specified to run with highest privileges which executes a bat file containing the following

    netsh interface set interface "Ethernet" DISABLED
    pause
    netsh interface set interface "Ethernet" ENABLED

    works for me.. (note the change in ").
      My ComputerSystem Spec


 

Related Threads
How to Enable or Disable Create a System Image in Windows 10 System image is a feature of Windows Backup included in Windows 10. A system image is a copy of the drives required for Windows to run. It can also include additional drives. A system...
How to Enable or Disable Energy Efficient Ethernet for a Modem During periods of low data activity, Energy Efficient Ethernet (802.3az EEE) allows for less power consumption by 50% or more while retaining full compatibility with existing...
Solved How do I re-create (restore) a task in Task Scheduler? in User Accounts and Family Safety
Once Windows 10 got itself updated to the Anniversary edition, I noticed there was some problem with the Family Safety feature - namely, whenever my kids asked me for a remote extension of the time limit, and I granted it, it simply wouldn't push...
Can any one just solve my below problem. I am having trouble with my Windows 10 network adapter problem. It shows multiple adapter in network adapter settings. Please see below screen shot. and Sometimes it doesn't shows any adapter at all. and i...
The laptop computer is attached to a corporate domain. The DNS servers are providing DHCP settings. After logging onto the network, there is NO IPV4 address assigned despite DHCP enabled. Using ipconfig command, the setting is an obscure IP...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:03.
Find Us