8

Windows 10 introduced the Mobile Hotspot service:

Mobile Hotspot Settings

How to enable it, set the SSID and password programmatically, using PowerShell or Windows API?

Note: I am not talking about the Hosted Network service (i.e. netsh wlan set hostednetwork mode=allow ssid=Name key=Passphrase). The Mobile Hotspot service works even if a network card does not support Hosted Network.

niutech
  • 28,923
  • 15
  • 96
  • 106
  • See also: [Getting Your Apps Connected with Networking APIs](https://channel9.msdn.com/Events/Build/2015/2-86) – niutech Jun 25 '18 at 20:54
  • **See this explanation, solution w/code:** https://stackoverflow.com/questions/41829382/wlanhostednetworkstartusing-or-how-windows-10-builtin-mobile-hotspot-works/50712007#answer-50712007 – smallscript Feb 28 '20 at 03:51

1 Answers1

4

What I have found so far using Process Monitor is that Mobile Hotspot is managed by the icssvc service and SSID and password are stored as binary data under registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\icssvc\Settings\PrivateConnectionSettings.

niutech
  • 28,923
  • 15
  • 96
  • 106
  • Any more info on this? The NetSH command now requires admin privileges in Windows 10 1803 (April 2018) and hoping to find some way to start a mobile hotspot programatically that doesn't require admin elevation. – AlexUT May 22 '18 at 15:49
  • 1
    @AlexUT Have a look at [Getting Your Apps Connected with Networking APIs](https://channel9.msdn.com/Events/Build/2015/2-86) and [NetworkOperatorTetheringManager Class](http://aka.ms/tetheringmsdn). – niutech Aug 20 '18 at 12:54