Hello!
I want to know if it possible to disable the annoying login screen in the computer after remote desktop session.
for /f "skip=1 tokens=3" %%s in ['query user %USERNAME%'] do [%windir%\System32\tscon.exe %%s /dest:console]
Place this batch file on the target PC that you'll be remoting into. Run it when you're ready to disconnect from the Remote Desktop session.Full credit goes to this article.