Solved

Persistent RDP on Windows 7 Pro

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

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

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

Suggested Solutions

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

762 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

22 Experts available now in Live!

Get 1:1 Help Now