I'm temporarily living in a place with no WLAN router and rely on WLAN hotspot on my Windows 11 laptop. As such, I want to turn on hotspot automatically on when I login or when hotspot for whatever reason was turned off (I've turned off energy saving mode but just in case).
The popolar answer on Google search does not work for me. If I run command (as admin)
netsh wlan start hostednetwork //start hotspot
I get an error:
The hosted network has not started.
The group or resource is not in the right state for this operation.
Whereas clicking WLAN hotspot icon in notification bar works normally.