Solved

Windows 2012 RDP Console Session logs off

Posted on 2014-03-17
4
1,183 Views
Last Modified: 2014-03-18
We have a Windows Server 2012 R2 server.  We have an application (First Class Web Services) on this server that requires a batch file to run a command with multiple switches, this batch files opens a command window and stays open, if you close this command window the application stops.  

Unfortunately this needs to be launched in a session, so we log into this server via RDP (mstsc /admin) and run the batch file and then disconnect (not log off).  A little while later the application stops working, and when we log back in to the rdp session (again with mstsc /admin) the command window is gone (as is any other windows that may have been left open).  

We believe the session is getting logged off automatically. (EDIT: I've check any policies, local and group policies, and there are no settings applied to limit a session and auto logoff).  How can we stop this from happening?

Thanks Experts!
./Steve
0
Comment
Question by:Steve M
  • 2
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
Netflo earned 500 total points
ID: 39934345
Have you tried running your CMD script via Task Scheduler and selecting 'Run whether user is logged on or not' and ticking the box 'run with highest privileges'

You also have the ability to run your script with switches too.
0
 
LVL 5

Author Comment

by:Steve M
ID: 39934442
Awesome Netflo, I have no idea why I didn't think of that!  I'll give this a try right now and I'll update in a few hours to see if it continues to run without issue - thanks!

./Steve
0
 
LVL 5

Author Comment

by:Steve M
ID: 39937344
Netflo, this worked perfectly thank you very much!
0
 
LVL 18

Expert Comment

by:Netflo
ID: 39937375
Most welcome and glad to have helped.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happenā€¦
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlleā€¦

777 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