:: --- (bat) wifi auto on-connect script (for windows wifi) #2/2 ---
:: -- (python) Script #1/2 here: https://pastebin.com/wcJaa963 --
:: -- create a shortcut of this file. Once created, right click on it
:: -- Finished. Restart computer/logout current user. This script will run on ALL USERS on PC. --
@echo off
:: --- Check for admin ---
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b