netsh advfirewall 防火墙(如果加密则设置允许)

netsh advfirewall firewall (set Allow if encrytped)

我正在尝试使用 "netsh advfirewall firewall add rule" 创建 windows 防火墙规则。

如何将 "action" 参数设置为 "Allow the connection if secure" 并要求加密连接?

security=authencaction=allowaction=bypass 取决于您的特定要求。