?
Solved

Windows 2012 RDP Console Session logs off

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

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…
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 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…
Suggested Courses

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