Starting automatically the wifi hotspot in Windows 11

FMC Production Médicale 1 Reputation point


I want to start automatically the wifi hotspot every run of my windows 11 computer. (to connect an ipad)

My PC is connected to internet with an rj45.

I tried to run a "netsh wlan start hostednetwork" but It didn't worked.

I look for in the task planner and didn't found either.

Do you know a way of allowing the hotspot wifi every running of the windows 11 computer?



Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,873 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 55,881 Reputation points

    Hi @FMC Production Médicale

    1) Try seeing if hostetnetwork is allowed on your device:

    Run cmd as Administrator

    Then run netsh wlan show settings


    2) Try the command:

    netsh wlan set hostednetwork mode=allow

    3) Program Task Scheduler to run the cmd above on startup.

    First, you'll need the cmd above in a .bat file. Open up notepad, copy the command netsh wlan set hostednetwork mode=allow into it and save as runme.bat in some folder.

    Use the following article to create a Task with Task Scheduler to run the .bat on startup:


    If this is helpful please accept answer.