Solved

Persistent RDP on Windows 7 Pro

Posted on 2013-02-01
5
1,229 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

861 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now