New
#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?