Επεξεργασία

Κοινή χρήση μέσω


Configure the session lock behavior for Azure Virtual Desktop

You can choose whether the session is disconnected or the remote lock screen is shown when a remote session is locked, either by the user or by policy. When the session lock behavior is set to disconnect, a dialog is shown to let users know they were disconnected. Users can choose the Reconnect option from the dialog when they're ready to connect again.

When used with single sign-on using Microsoft Entra ID, disconnecting the session provides the following benefits:

  • A consistent sign-in experience through Microsoft Entra ID when needed.

  • A single sign-on experience and reconnection without authentication prompt, when allowed by conditional access policies.

  • Support for passwordless authentication like passkeys and FIDO2 devices, contrary to the remote lock screen. Disconnecting the session is necessary to ensure full support of passwordless authentication.

  • Conditional access policies, including multifactor authentication and sign-in frequency, are reevaluated when the user reconnects to their session.

  • You can require multifactor authentication to return to the session and prevent users from unlocking with a simple username and password.

For scenarios that rely on legacy authentication, including NTLM, CredSSP, RDSTLS, TLS, and RDP basic authentication protocols, users are prompted to re-enter their credentials when they reconnect or start a new connection.

The default session lock behavior is different depending on whether you're using single sign-on with Microsoft Entra ID or legacy authentication. The following table shows the default configuration for each scenario:

Scenario Default configuration
Single sign-on using Microsoft Entra ID Disconnect the session
Legacy authentication protocols Show the remote lock screen

This article shows you how to change the session lock behavior from its default configuration using Microsoft Intune or Group Policy.

Prerequisites

Select the relevant tab for your configuration method.

Before you can configure the session lock behavior, you need to meet the following prerequisites:

Configure the session lock behavior

Select the relevant tab for your configuration method.

To configure the session lock experience using Intune:

  1. Sign in to the Microsoft Intune admin center.

  2. Create or edit a configuration profile for Windows 10 and later devices, with the Settings catalog profile type.

  3. In the settings picker, browse to Administrative templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security.

    A screenshot showing the Remote Desktop Session Host security options in the Microsoft Intune portal.

  4. Check the box for one of the following settings, depending on your requirements:

    • For single sign-on using Microsoft Entra ID:

      1. Check the box for Disconnect remote session on lock for Microsoft identity platform authentication, then close the settings picker.

      2. Expand the Administrative templates category, then toggle the switch for Disconnect remote session on lock for Microsoft identity platform authentication to Enabled or Disabled:

        • To disconnect the remote session when the session locks, toggle the switch to Enabled.

        • To show the remote lock screen when the session locks, toggle the switch to Disabled.

    • For legacy authentication protocols:

      1. Check the box for Disconnect remote session on lock for legacy authentication, then close the settings picker.

      2. Expand the Administrative templates category, then toggle the switch for Disconnect remote session on lock for legacy authentication to Enabled or Disabled:

        • To disconnect the remote session when the session locks, toggle the switch to Enabled.

        • To show the remote lock screen when the session locks, toggle the switch to Disabled.

  5. Select Next.

  6. Optional: On the Scope tags tab, select a scope tag to filter the profile. For more information about scope tags, see Use role-based access control (RBAC) and scope tags for distributed IT.

  7. On the Assignments tab, select the group containing the computers providing a remote session you want to configure, then select Next.

  8. On the Review + create tab, review the settings, then select Create.

  9. Once the policy applies to the session hosts, restart them for the settings to take effect.

  10. To test the configuration, connect to a remote session, then lock the remote session. Verify that the session either disconnects or the remote lock screen is shown, depending on your configuration.