feat: Enable Network Discovery by default. (Support multiple languages)

This commit is contained in:
xsy420 2024-05-16 13:36:52 +08:00
parent b0573664de
commit abf2fafa66
27 changed files with 27 additions and 27 deletions

View file

@ -296,7 +296,7 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>15</Order>
<CommandLine>netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes</CommandLine>
<CommandLine>powershell -ExecutionPolicy ByPass -Command "Enable-NetFirewallRule -DisplayGroup @(Get-NetFirewallRule | Where-Object Name -Match "NetDIS.*" | Select-Object DisplayGroup -Unique | % DisplayGroup)"</CommandLine>
<Description>Enable Network Discovery</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">