?
Solved

Persistent RDP on Windows 7 Pro

Posted on 2013-02-01
5
Medium Priority
?
1,314 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 15

Assisted Solution

by:William Fulks
William Fulks earned 200 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 1800 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Suggested Courses

765 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