how do i use intune to enable the built in firewall 'Remote Desktop - User Mode (TCP-In)'?
how to enable built in firewall rules using intune
Hi All,
I want to enable rdp (but only for when people are in office)
I manage to setup the Allow remote remote connection to this computer to be tick
However, i need to enable the built in firewall rules 'Remote Desktop - User Mode (TCP-In)' using intune.
Does anyone can help me?
3 answers
Sort by: Oldest
-
-
Crystal-MSFT 44,416 Reputation points Microsoft Vendor
2022-09-28T06:29:16.713+00:00 @hyugai , Based on my test, we can save the following command in ps1 PowerShell script, then deploy the script via Intune to enable the built in windows firewall rule:
Get-NetFirewallRule | where {$_.displayname -eq 'Remote Desktop - User Mode (TCP-In)'} | Enable-NetFirewallRule
Hope it can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. -
hyugai 31 Reputation points
2022-09-28T21:37:10.05+00:00 hi thanks for the reply.
So there is no built in intune policy to enable this built in firewall rule in windows 10?Further, what if i want to enable this firewall rules but the scope profile only for domain profile?
How would the powershell script look like?