netsh wlan autoconfig set
To use:
- Download files
- Open Task Scheduler and create new Task
- Select the Trigger tab and add new trigger
- Select "on an event" from the dropdown
- Select "Microsoft-Windows-NetworkProfile/Operational" from as the Log
- Write "10001" as the Event ID
- Add a second trigger "On startup"
- Select the Actions tab and add new action
- Select start a program from the dropdown
- Write "powershell" in the program/script input
- Write the following in add arguments: windowstyle hidden -NoLogo -NonInteractive -NoProfile -file "C/:your-file-location/wifi-autoconnect.ps1