如何以编程方式设置 Windows 10 移动热点? [英] How to set up Windows 10 Mobile Hotspot programmatically?

查看:36
本文介绍了如何以编程方式设置 Windows 10 移动热点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 10 引入了

如何启用它,使用 PowerShell 或 Windows API 以编程方式设置 SSID 和密码?

注意:我不是在谈论托管网络服务(即 netsh wlan set hostsnetwork mode=allow ssid=Name key=Passphrase).即使网卡不支持托管网络,移动热点服务也能正常工作.

解决方案

到目前为止,我使用 Process Monitor 发现 Mobile Hotspot 由 icssvc 服务管理,SSID 和密码存储为注册表项 HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesicssvcSettingsPrivateConnectionSettings 下的二进制数据.

Windows 10 introduced the Mobile Hotspot service:

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.

解决方案

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_MACHINESYSTEMCurrentControlSetServicesicssvcSettingsPrivateConnectionSettings.

这篇关于如何以编程方式设置 Windows 10 移动热点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆