Step 1: Press the [Win+R] shortcut key to open the [Run] window, then according to the figure below, enter [gpedit.msc] in the box and click the [OK] option
Step 2: Click [Computer Configuration-Administrative Templates-Windows Components-Remote Desktop Services-Remote Desktop Session Host-Security] option in turn.
Step 3: Locate and double-click the [Remote (RDP) connections require a specified security layer] option.
Step 4: Check [Enabled] first, then set [Security Layer] to [RDP], and then click the [OK] option.
Step 5: Restart the computer.