title: How to set up Windows 10 Mobile Hotspot programmatically?
body: <p>Windows 10 introduced the <a href="https://support.microsoft.com/en-us/help/4027762/windows-use-your-pc-as-a-mobile-hotspot" rel="noreferrer">Mobile Hotspot</a> service:</p>
  
  <p><a href="https://i.stack.imgur.com/6oS2v.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6oS2v.png" alt="Mobile Hotspot Settings"></a></p>
  
  <p>How to enable it, set the SSID and password programmatically, using PowerShell or Windows API?</p>
  
  <p><strong>Note:</strong> I am not talking about the Hosted Network service (i.e. <code>netsh wlan set hostednetwork mode=allow ssid=Name key=Passphrase</code>). The Mobile Hotspot service works even if a network card does not support Hosted Network.</p>