Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows 2012 RDP Console Session logs off

Posted on 2014-03-17
4
Medium Priority
?
1,349 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 2000 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
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…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
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…

610 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