答案1
它不是 powershell,但是:
启用发现:
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
禁用发现:
netsh advfirewall firewall set rule group="Network Discovery" new enable=No
它不是 powershell,但是:
启用发现:
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
禁用发现:
netsh advfirewall firewall set rule group="Network Discovery" new enable=No