Re: Auto - login when resuming from remote desktop ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Shenan Stanley (news_helper_at_hushmail.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 03:16:27 -0600

Guy wrote:
> I set up a machine to auto login on startup, since it is physically
> secure and no need for entering the password each time.
>
> But after connecting remotely and disconnecting, it remains in the
> welcome screen.
> Is there a way to have it re-login automatically when I disconnect
> the remote login?

Jeffrey Randow wrote:
> Try running "tscon.exe 0 /dest:console" before you disconnect... :)

Guy wrote:
> is this a one time command / once per boot / or once per
> disconnection ? I'd like to automate it...

The "tscon 0 /dest:console" command works on the remote host in this way..

You were locally logged into the host at some point and are STILL logged in
there - but are no longer actually in front of the PC - but at a remote
location. You start a remote desktop connection to the host and log in as
the same user - essentially continuing the session you were logged in
locally when you were physically at the host. To end your session, instead
of disconnecting you run the command line: "tscon 0 /dest:console", which
essentially pushes the current session back to the console - or makes it
look like you never interrupted the local session. Thus when you get back
to the host, it is like you never left that original session.

If you have the screensaver set to return to the welcome screen after a
certain time, this will STILL happen. The results are the same as your
original complaint. I must say at this point, no matter how "private" your
host computer may be - having it lock your screen and make you log in to
continue the same session is a lot more secure than having it sit tere -
unattended and wide open to anyone/thing that walks up and touches the
keyboard/mouse.

In any case I hope my explanation of the tscon command helps. Notice that
if you were never logged in locally in the first place - the push to the
console will fail - as there never was a console session.

-- 
<- Shenan ->
-- 
The information is provided "as is", it is suggested you research for
yourself before you take any advice - you are the one ultimately
responsible for your actions/problems/solutions.   Know what you are
getting into before you jump in with both feet. 


Relevant Pages

  • All going well... until Server 2003!
    ... Error:The requested session access is denied. ... Can I stop Remote Desktop from locking host? ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: How can I connect to console session using remote desktop conn
    ... one interactive session, so the host session will be locked ... Jeffrey Randow (Windows Networking & Smart Display MVP) ... Remote Networking Technology Support Site - ... >the active session on the host machine. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Remote Desktop vs. GoToMyPC
    ... My understanding of GTMPC is that when a session from a host PC to a remote ... computer is established, a unique access code is generated from the host PC, ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Retrieve remote host from a Stored procedure
    ... What do you mean by "address who owns the Session?" ... Do you want the SID and other information related to the remote ... Well I'm calling the Stored Procedure from a Java Servlet with Jdbc. ... So I neet to know the remote address(or host) of the Servlet (that ...
    (comp.databases.oracle.server)
  • Re: Automatic Unlock at Local Host
    ... User disconnects from the remote session. ... Is it possible to set it up so when the user disconnects from the ... screensaver or any other mechanism in a given period of time. ...
    (microsoft.public.windowsxp.work_remotely)