Windows Task Scheduler with netsh in batch won't work


  1. Posts : 1
    Windows 10 Pro x64
       #1

    Windows Task Scheduler with netsh in batch won't work


    I have a PC that is on my network but connected to the internet through a wifi connection that periodically disconnects itself (from the router end). Using Windows 10 Pro x64 1909

    The PC is basically a "public" terminal I use in my home, but only want it to connect through internet through the Xfinity wifi hotspot.

    If I use:

    Code:
    netsh wlan connect name=XFINITY
    From a command line or in a .bat file it works fine.

    But as soon as I set it as a task in Windows Task Scheduler to run the batch file (basically just that command above), it says it ran successfully, but it doesn't connect.

    I set it to connect once every hour using the "Advanced" settings of:

    repeat task every "1 hour" ... repeat "indefinitely"

    I have run it with highest privileges too, even though I shouldn't have to, and it still won't work.

    Any tips? Thanks!

    - - - Updated - - -

    Well, after recreating the task a couple times and a reboot, it works now... /shrug/
    Last edited by HTWingNut; 28 Feb 2020 at 19:30.
      My Computer


 

  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 13:41.
Find Us




Windows 10 Forums