The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,437 other followers

Hack the Remote Desktop .RDP file

Posted by jpluimers on 2016/01/01

Glad I found out about the string to add to a .RDP file to make it connect to the administrative console whenever your remote supports that:

connect to console:i:1

–jeroen

via: Hack the Remote Desktop .RDP file.

One Response to “Hack the Remote Desktop .RDP file”

  1. jpluimers said

    Interesting comments at https://plus.google.com/u/0/+JeroenPluimers/posts/JyEX51eASWM

    Joe C. Hecht:
    I don’t know if this is helpful, but I use this code on a remote machine (run as admin) to log out of a remote desktop and return the screen back to the way it was on login:

    Win7/8/10:
    for /f “usebackq skip=1 tokens=3” %%i in (query user %USERNAME%) do %windir%\System32\tscon.exe %%i /dest:console

    WinXP:
    @echo off
    %windir%\System32\tscon.exe 0 /dest:console

    Jeroen Wiert Pluimers:
    +Joe C. Hecht Please enlighten me: what do these scripts result in? (I’ve never used tscon)

    Joe C. Hecht:
    +Jeroen Wiert Pluimers Certainly sir! When I RDP into another machine, then close the connection, the machine I RDP’d into goes to a log-in screen. I use the scripts on the remote machine to close the session, and return the remote machine to the desktop (sans log in screen). I suppose your mileage might vary vary. I do a lot of RDP and VNC sessions, and found the scripts very handy.

    Jeroen Wiert Pluimers:
    +Joe C. Hecht but then: do you still have an RDP connection? And is that connected to the “console” session? Does it require elevated permissions? If so: how to redirect the session for a user that has no elevation rights?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: