看看这里:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
将类别键更改为适当的设置.
Public = 0 Home = 1 Work = 2
Powershell方法(可能更可靠):
Get-NetConnectionProfile Set-NetConnectionProfile -InterfaceIndex # -NetworkCategory Public