Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.14 KB

File metadata and controls

30 lines (19 loc) · 1.14 KB

Windows Hotspot Toggle

PowerShell script to toggle the WiFi hotspot on Windows 10/11 without using deprecated netsh commands.

Features

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.

Usage

Check configuration segment in the script

image

Run script in terminal

.\toggle-hotspot.ps1

Run as a shortcut, or in Task Scheduler

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -file toggle-hotspot.ps1

Requirements

  • Windows 10/11
  • Administrator privileges
  • PowerShell 5.1+

Why, thank you for asking!
👉 You can donate to all my projects here👈