Task Scheduler Script


  1. Posts : 2
    Windows 10
       #1

    Task Scheduler Script


    I want to enable and disable my Ethernet connection at specific times each day. Task Scheduler prompts me for the script identifying the action of enabling or disabling the Ethernet connection. How do I identify these two specific scripts?
      My Computer


  2. Posts : 42,946
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    If you search the internet for e.g.
    command line enable ethernet

    you will find helpful results like
    Network Adapter (NIC) - Enable or Disable in Windows
    (Option 3, 4).

    You should be able to use those in a *.bat file.
    Note these require to be run as admin, so configure the task accordingly.
      My Computers


  3. Posts : 2
    Windows 10
    Thread Starter
       #3

    Thanks for the info. Was successful using netsh cmd
      My Computer


  4. Posts : 42,946
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Great!
      My Computers


 

  Related Discussions
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 09:28.
Find Us




Windows 10 Forums