Score:0

Only Allow 1 user to Remote Desktop at a time (Windows 2019)

es flag

By default Windows 2019 allows 2 users to remote desktop at one time. Is there a way to restrict this even further to allow only 1 remote desktop user at a time? I tried the following tutorial, however I'm still able to remote desktop with 2 different users at the same time. https://support.managed.com/kb/a1816/how-to-enable-disable-multiple-rdp-sessions-in-windows-2012-2012-r2-2016-and-2019.aspx

Thank you in advance!

Score:1
es flag

I'm not sure if restricting RDP access to one user at this time is possible for Windows 2019. However, I came up with a workaround that works great. I created a scheduled task that will log off all other users when a user logs in. This way only one user can be logged in at a time. The scheduled task runs a batch script to accomplish this, here is the batch script if anyone is interested:

query session >session.txt  
for /f "skip=2 tokens=2,3," %%i in (session.txt) DO if not %USERNAME%==%%i logoff %%j  
del session.txt
djdomi avatar
za flag
why would you like to do this?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.