Solved

Persistent RDP on Windows 7 Pro

Posted on 2013-02-01
5
1,239 Views
Last Modified: 2015-04-21
I have a windows 7 station on the plant floor that makes an RDP connection to our Remote desktop server.  It automatically starts the app on boot and logs in, loading hte application needed on the station.  

the issue I wish to find a solution to at this point is having the session re-open if someone closes it down.  In other words.

Station Boots up, logs into Windows automatically, through GPO loads MSTSC.EXE C:\default.rdp
Default.rdp has saved credentials so it connects to the server and logs in automatically

IF someone closes the rdp session whether it is from logging out, or disconnecting or whatever other means, i was hoping there was a method of automatically reconnecting the session.

It can be another application that makes the RDP connection, or somethign that says if the RDP app closes, reboot the computer so that the rdp re-starts.

Any suggestions woudl be appreciated.
0
Comment
Question by:TheMetalicOne
5 Comments
 
LVL 14

Assisted Solution

by:William Fulks
William Fulks earned 50 total points
ID: 38845193
You could make a batch file that runs the RDP after it is closed. For example, if you wanted to keep notepad running, you could make a batch file like:

@ echo off
notepad
notepad

That would open Notepad, then open it again after you closed the first one.

For your RDP session, you could do something like

@ echo off
mstsc /v:servername
mstsc /v:servername

Or something along those lines. If somebody closes the batch file, it'll kill it, too.
0
 
LVL 16

Expert Comment

by:joinaunion
ID: 38845202
0
 
LVL 6

Accepted Solution

by:
mmahaek earned 450 total points
ID: 38845471
The link below is for Windows Embedded, but works on standard versions of Windows.  This will set the shell program.  If you use method 3, it will only apply to that specific user.  The shell application is the main windows component.  Typically this is explorer.exe.  If you make it mstsc.exe, when that app closes, the user will be logged out.

http://msdn.microsoft.com/en-us/library/ms838576(v=winembedded.5).aspx
0
 
LVL 5

Author Closing Comment

by:TheMetalicOne
ID: 38851224
Worked like a charm, had to tinker with the settings but the vb script did everything I wanted it to do :)
0
 

Expert Comment

by:yield fried
ID: 40736726
How did u make it logon on boot
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
windows explorer default details view 10 58
robocopy 33 87
PerfMon Report Time Out 6 26
WMI - Issue Server 2012 R2 1 10
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
OfficeMate Freezes on login or does not load after login credentials are input.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question