Solved

Windows 2012 RDP Console Session logs off

Posted on 2014-03-17
4
1,145 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will review the basic installation and configuration for Windows Software Update Services (WSUS) in a Windows 2012 R2 environment.  WSUS is a Microsoft tool that allows administrators to manage and control updates to be approved and ins…
Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
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…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

747 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

12 Experts available now in Live!

Get 1:1 Help Now