Windows防火墙中添加网络类型从公用网络到专用网络

Powershell:

Set-NetConnectionProfile -InterfaceAlias ‘wg’ -NetworkCategory ‘Private’