$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
I usually have lots of Terminal Server sessions open when I’m working, both direct sessions but also “sessions in sessions”. In order to keep overview on my desktop I prefer to make the session size as big as possible without being full screen (so keep my local taskbar visible).
If I run a session in a session I do this again, this makes switching sessions very easy and you can always see which session you are in:
In order to specify the desktop size to mstsc we have to know the height of the taskbar and subtract this from the height of the desktop. Because the taskbar can be made bigger or it’s size can be different when a theme (such as Vista’s AERO is used) I wrote a little tool that calculates the correct desktop size and kicks off the session. I used the SystemParametersInfo and GetSystemMetrics API’s:
SystemParametersInfo(SPI_GETWORKAREA, 0, @Rect, 0)
// Width = Screen Width
ScrWidth := Rect.Right – Rect.Left;
// Height = Maximum client area height
ScrHeight := GetSystemMetrics(SM_CYFULLSCREEN);
Next I run mstsc specifying the width and height and the rdp file as given by commandline:
if (UpperCase(ParamStr(1)) = ‘/CONSOLE’) or (UpperCase(ParamStr(1)) = ‘/ADMIN’) then
begin
sCmd := Format(‘%s\system32\mstsc.exe “%s” /w:%d /h:%d %s %s’,
[WinDir, ParamStr(2), ScrWidth, ScrHeight, ParamStr(1), ParamStr(3)]);
end
else begin
sCmd := Format(‘%s\system32\mstsc.exe “%s” /w:%d /h:%d %s %s’,
[WinDir, ParamStr(1), ScrWidth, ScrHeight, ParamStr(2), ParamStr(3)]);
end;
Finally I add my tool to the registry so it appears in the context menu of RDP Files.
You can find the Tool and .reg file in this download: RDPWithLocalTaskbar (3445 downloads)
PS the reg file was made for the v6 version of the MSTSC client where the /console switch was replaced /admin. If you have an older version you need to modify HKEY_CLASSES_ROOT\RDP.File\shell\connectconsole\command
“%systemroot%\system32\RDPWithLocalTaskbar.exe” “%1” /admin
to
“%systemroot%\system32\RDPWithLocalTaskbar.exe” “%1” /console
9 Responses for "RDP Session with Local Taskbar visible"
Hi Remko,
I’m on the lookout for a hack to enable the ‘Shut Down’ button in an XP RDP session. I’ve seen this on a machine (which was on an AD Domain) last week but I can’t find any reference on how to achieve it anywhere on the net (and believe me I’ve looked!!).
It looks like you and the others who post to this blog have a pretty in-depth understanding of the inner workings of RDP and I’m wondering if you can point me in the right direction?
Thanks in advance,
Sam.
Thanks Remko,
I have application bug with remoteapp, and this save my life to use in pseudo remoteapp.
Hey there, this is awesome… and it works with Windows 7 as well. I do have one request though. I have two monitors and with my setup, I’m putting my taskbar onto my second monitor (right monitor). I also use my RDP sessions on this monitor… but your tool calculates for the primary display.
Would it be possible to add a way to calculate for the secondary display?
Thanks!
[…] For a long time now people have asked for a version of LaunchRDP that includes the Connection Bar. The original versions was originally written for a very specific purpose and I never anticipated so many people would want to use it. But it seems that a lot of people like the Connection Bar (I have it, especially with sessions in sessions, so that’s why I am using RDPWithLocalTaskbar). […]
What is the correct syntax.
I’m using:
rdp.exe nodea 3389 Administrator nodea password 1 0 0
It give me an error: Invalid connection file (Administrator) specified.
With the lauchrdp.exe and the same parameter it runs fine.
Thanks in advance
to Vincenzo RDP.exe – crypt/decrypt tool, it`s not a rdplunch.
and one question to author of briliant tool: how can i run RDPWithLocalTaskbar.exe direct in fullscreen? (when I set it in shutcut, it still run in windowed mode( )
Hi,
Is it possible tu use your tool to crypt rdp password by command line ?
thanks.
Hi,
Is it possible to crypt rdp password by command line with your tool RDPV2 ?
Thanks
Thanks for this program, this is exactly what I have been searching for to use with RDP sessions. I have a couple of questions however:
1. How do I get the sessions to open full-screen upon connection? It now opens them in a smaller window which I can maximize to full screen.
2. What is the difference between Connect and Console? Both seem to do the same thing, what am I missing?
Thanks.
Leave a reply