Hello,
Depending on your description, you need to enable authentication when connecting remotely, you can try the following:
- Enable RDP authentication by editing the registry or using Group Policy. In the registry, you can navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TCP and set the value of 'SecurityLayer' to '1' (for TLS or negotiation) and 'UserAuthentication' to '1' (indicates that authentication is required).
Alternatively, you can open the Group Policy Editor on the connected side, navigate to: Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Security, and double-click to open "Require user authentication for remote connections by using Network Level Authentication" ,and enable the policy.
Then, navigate to: Computer Configuration> Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security, double-click to turn on Remote (RDP) Connection Requires Specified Security Layer, set it to Enabled, set the security layer to SSL, restart the machine and try to connect remotely.
- On NPS, you need to create a network policy that will require users to provide authentication when they connect to Remote Desktop. This involves configuring the RADIUS client and network policies so that authentication is triggered when a user attempts an RDP connection.
- In order to use 2FA, you need to configure Azure AD Premium on your domain controllers, as it provides conditional access and multi-factor authentication (MFA) capabilities. You can set MFA in the Azure portal and select the applications and services that require MFA, including Remote Desktop Services. Ensure that the user is registered with the Microsoft Authenticator app and is able to receive and verify push notifications or verification codes.
- Users need to install the Microsoft Authenticator app on their device and associate it with their account. That way, when they try to connect via RDP, they'll be prompted to use the Authenticator app to complete the second-factor authentication.
I hope this information helps.
Best regards,
Jingjing Wu