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.
Computer HelperWindows Server AdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

serialbandCommented:
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.
0
Computer HelperWindows Server AdminAuthor Commented:
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.
0
serialbandCommented:
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.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Computer HelperWindows Server AdminAuthor Commented:
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.
0
serialbandCommented:
There's 3 default Remote Desktop Sessions.  One is the Console.  If your server is in a secure room, log onto the Console session and put a weight on the keyboard.

Otherwise override the session's timeout just for Administrator.
http://nmsiam.blogspot.com/2013/01/remote-desktop-session-timeouts.html

https://social.technet.microsoft.com/forums/windowsserver/en-US/d3d0dcf0-f963-4724-bf7f-93d3ebe20c11/remote-desktop-services-sessions-are-not-kept-alive-as-expected-in-windows-server-2012
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Computer HelperWindows Server AdminAuthor Commented:
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)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.