feat: Enable file sharing by default. (Support multiple languages)

This commit is contained in:
xsy420 2024-05-16 13:37:21 +08:00
parent abf2fafa66
commit 9c7ecb00b0
27 changed files with 27 additions and 27 deletions

View file

@ -322,7 +322,7 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>16</Order>
<CommandLine>netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes</CommandLine>
<CommandLine>powershell -ExecutionPolicy ByPass -Command "Enable-NetFirewallRule -DisplayGroup @(Get-NetFirewallRule | Where-Object Name -Match "FPS-.*" | Select-Object DisplayGroup -Unique | % DisplayGroup)"</CommandLine>
<Description>Enable File Sharing</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">