3
3M3M3M
Guest
We are using a bat script to enable following in the Windows Defender Firewall when the machine is built.
netsh advfirewall firewall set rule Name="Remote Desktop - Shadow (TCP-In)" new Action=Allow
netsh advfirewall firewall set rule Name="Remote Desktop - Shadow (TCP-In)" new enable=yes
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (TCP-In)" new Action=Allow
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (TCP-In)" new enable=yes
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (UDP-In)" new Action=Allow
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (UDP-In)" new enable=yes
This works fine when the machine is using US or UK English. It fails when we the Japanese, Korean, Chinese or Russian language pack is applied to the OS.
Is there a better way of doing it so that firewall rules get applied irrespective of OS UI. We cant use GPO (to manage Firewall) for now due to some issues.
More...
netsh advfirewall firewall set rule Name="Remote Desktop - Shadow (TCP-In)" new Action=Allow
netsh advfirewall firewall set rule Name="Remote Desktop - Shadow (TCP-In)" new enable=yes
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (TCP-In)" new Action=Allow
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (TCP-In)" new enable=yes
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (UDP-In)" new Action=Allow
netsh advfirewall firewall set rule Name="Remote Desktop - User Mode (UDP-In)" new enable=yes
This works fine when the machine is using US or UK English. It fails when we the Japanese, Korean, Chinese or Russian language pack is applied to the OS.
Is there a better way of doing it so that firewall rules get applied irrespective of OS UI. We cant use GPO (to manage Firewall) for now due to some issues.
More...