Hello @Mayank Suhane,
Thank you for posting your query on Microsoft Q&A.
Based on your description, it sounds like you're looking to disable Remote Desktop Connection or prevent users from initiating a remote session when they are logged into the system with Entra ID.
Here are the steps you can follow to disable Remote Desktop or prohibit remote sessions:
Method 1: Disable Remote Desktop through Group Policy
- Open the Group Policy Editor (gpedit.msc) on a domain controller or a system with the Group Policy Management Console installed.
- Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
- Enable the policy "Allow users to connect remotely using Remote Desktop" and set it to "Disabled".
- Apply the policy to the desired OU or domain.
Method 2: Disable Remote Desktop through Registry
- Open the Registry Editor (regedit.exe) on the system you want to disable Remote Desktop on.
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server.
- Create a new DWORD (32-bit) value named "fDenyTSConnections" and set its value to 1.
- Restart the system for the changes to take effect.
Method 3: Disable Remote Desktop through Intune
Go to Microsoft Intune admin center. Create a custom profile and deploy this profile to the device group you want.
Select Devices > Manage devices > Configuration > Create > New policy.
Platform: Choose the platform of your devices. Your options:
Profile type: Select Custom. Or, select Templates > Custom.
Name: Set a name for this profile.
- OMA-URI setting: ./Device/Vendor/MSFT/Policy/Config/RemoteDesktopServices/AllowUsersToConnectRemotely
Data Type: String
Value: <disabled />
Alternatively, you can create an administrative template with the setting "Require user authentication for remote connections by using Network Level Authentication" to disable remote access.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.
Thanks,
Raja Pothuraju.