enable remote desktop firewall

This commit is contained in:
L3D 2022-12-31 15:50:03 +01:00
parent dca7aa6301
commit f6452a9a40
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -27,6 +27,11 @@
script: 'Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\ -Name “UserAuthentication” -Value 1'
changed_when: _a.changed
- name: Enable Remote Desktop connections
ansible.windows.win_powershell:
script: 'Enable-NetFirewallRule -DisplayGroup “Remote Desktop”'
changed_when: _a.changed
- name: Firewall rule to allow RDP on TCP port 3389
community.windows.win_firewall_rule:
name: Remote Desktop