How to enable RDP Firewall access via PowerShell

If you want to enable RDP access through your firewall, and you want to do it through PowerShell, enter the following commands:   get-netfirewallrule -DisplayGroup “Remote Desktop” | format-table Name, Enabled -autosize This will show you the current firewall rules. Enable-NetFirewallRule -DisplayGroup “Remote Desktop” This will enable RDP access through the firewall.