Hello,
When we connect to a Remote PC using Remote Desktop, by default, if the controlled PC has a password and is in hibernation or locked state, the screen is usually locked after the connection and we need to manually unlock it. If you want to go directly to the desktop after remote login, you can follow these steps:
First change the system login options, set "How long do you want Windows to ask you to log in again after you leave the computer" under "Other Settings" to "never."
Then, configure the RDS login related group policy on the remote PC to automatically log in to the remote desktop service. On the remote computer, open the Group Policy Editor with administrator rights (run gpedit.msc). Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security. Disable the policy shown below:
Confirm the policy and restart your computer for the changes to take effect.
I hope this helps.
Best regards,
Jacen Wang