PowerShell script to toggle the WiFi hotspot on Windows 10/11 without using deprecated netsh commands.
This script is meant to automatically enable or disable the Windows Hotspot. In order for it to properly work and be firewall-firendly, some workarounds have been included: the wifi radio is turned off and on, optionally the adpater itself is reset before operation.
In our tests this should work at startup as well, so as to have the hotspot always running.
.\toggle-hotspot.ps1
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -file toggle-hotspot.ps1
- Windows 10/11
- Administrator privileges
- PowerShell 5.1+
Why, thank you for asking!
👉 You can donate to all my projects here👈