feat: Enable Remote Desktop by default. (Support multiple languages)

This commit is contained in:
xsy420 2024-05-16 13:37:50 +08:00
parent 9c7ecb00b0
commit 2432fb9adc
33 changed files with 148 additions and 256 deletions

View file

@ -231,7 +231,7 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>14</Order>
<CommandLine>netsh.exe advfirewall firewall set rule group="Remote Desktop" new enable=Yes</CommandLine>
<CommandLine>powershell -ExecutionPolicy ByPass -Command "Enable-NetFirewallRule -DisplayGroup @(Get-NetFirewallRule | Where-Object Name -Match "RemoteDesktop-[^I].*" | Select-Object DisplayGroup -Unique | % DisplayGroup)"</CommandLine>
<Description>Add RDP in firewall</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">