New
#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:
From a command line or in a .bat file it works fine.Code:netsh wlan connect name=XFINITY
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.