Solved

Windows 2012 RDP Console Session logs off

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently, I was assigned the task of performing a hardware refresh in the datacenter. The previous Windows 2008 systems were connected to the SAN via fiber channel HBA’s and among other thing, had PowerPath installed in order to provide sufficient f…
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…
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
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…

691 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