Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote Desktop Monitor Problem

Status
Not open for further replies.

TekkerJedi

Technical User
Sep 9, 2003
2
I connect to PC A from PC B using remote desktop, then I log out. After this, I go physically back to PC A, sit down to log in, hit ctrl+alt+del and then the monitor goes black and says "out of range". This only happens after connecting successfully with Remote Desktop from either of two other machines. Also the login screen on PC A after I go back to it physically says "Computer has been locked by localmachine\userA, Only the Administrator and userA can unlock this machine."
Any help would be appreciated greatly

Casey
 
The out of range deals with differences in the monitor settings.

The locked workstation is a security measure. You do not want the station accessible after a remote session has concluded.

You can work around this: When you´ve finished with session from the Remote Desktop client, do not disconnect. Instead, connect that session to the console with tscon, which is a Windows command-line tool. For example, if
you are connected with the Remote Desktop client to session 0, the following command, run from a Command Prompt window, will connect your session back to
the console (and disconnect you in so doing):

C:\>tscon 0 /dest:console

If you don´t know what your session ID is, you can find out with qwinsta, either manually or in a for loop with tscon. For example:

C:\>for /f "tokens=3" %i in ('qwinsta ^| findstr /b ^^^>') do tscon %i /dest:console

This command runs qwinsta, extracts the session ID from the output, then connects the corresponding session to the console.
 
Thank you bcaster! I will try that first thing in the morning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top