Link to home
Start Free TrialLog in
Avatar of Computer Helper
Computer HelperFlag for United States of America

asked on

Keep User logged in on Server 2012 R2

I have Virtual Server2012 R2 that is hosted in the cloud.
It is on a Domain and using Active Directory
I have the RDS license installed and all is well

I have an Admin user that needs to keep his session logged in so that certain tasks are performed.  This is the only user that needs this.  I need the other users to get logged out as soon as they close the RDS session for performance and security reasons.
Avatar of serialband
serialband
Flag of Ukraine image

Why don't you just run your application as a service instead?  http://www.anvir.com/run-programs-as-services.htm

There really isn't a need to keep a user logged on once you've converted it to a service.
Avatar of Computer Helper

ASKER

According to the SQL writer the login has to stay running.  It’s not a task thing, it has to do with QuickBooks requiring the UI to run.  And only way that happens is to have a disconnected user logged in to run the tasks it needs to do.  It’s weird, but there you go.  

QB absolutely requires a UI to run, so you have to be logged in as a real user and not a service.
I seem to recall that there was a setting in 2003 and 2008 (It's been a long while and I haven't had to run a service in 2012 yet) that allowed you to set a user and run as if the user was logged in.
There has to be a way to keep a user logged into Server 2012R2 and it be isolated to only Administrators or a single user.
ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Called Microsoft and this is how they fixed it.

 
PROBLEM: Only one user should have an rdp session, that is always active and never ends on Server 2012 R2.
RESOLUTION:
--created a new container in Active Directory and moved the user into that container.
--created a new GPO for this container
--enabled the “Set time limit for disconnected sessions to never” policy for that user by editing the new GPO:.
--ran gpupdate /force on the server as well on that particular user session.
--also made the following registry change for that user on the user session itself:
[HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client]
"Keep Alive Interval"=dword: 999999(decimal)