Can we disable the RDP Application/Connection when Entra ID authentication is used

Mayank Suhane 20 Reputation points
2024-08-05T12:25:18.8533333+00:00

System is authenticating with Entra ID.
Want to disable the Remote Desktop Application / Connection or prohibit user to take a remote session of any system.

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,565 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,814 questions
0 comments No comments
{count} votes

Accepted answer
  1. Raja Pothuraju 6,590 Reputation points Microsoft Vendor
    2024-08-06T02:32:07.7166667+00:00

    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

    1. Open the Group Policy Editor (gpedit.msc) on a domain controller or a system with the Group Policy Management Console installed.
    2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
    3. Enable the policy "Allow users to connect remotely using Remote Desktop" and set it to "Disabled".
    4. Apply the policy to the desired OU or domain.

    Method 2: Disable Remote Desktop through Registry

    1. Open the Registry Editor (regedit.exe) on the system you want to disable Remote Desktop on.
    2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server.
    3. Create a new DWORD (32-bit) value named "fDenyTSConnections" and set its value to 1.
    4. 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 />User's image

    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.

    User's image

    https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-remotedesktopservices#allowuserstoconnectremotely

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.