Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have Windows Server 2008 R2 with RDS and custom desktop (GUI) application installed on the server. The app is started as RemoteApp on server by user from his desktop computer (or, sometimes, he can work from notebook over VPN).

Some details about environment:

  • the server automatically shuts down every evening and automatically power-on every morning (this is a requirement)
  • desktop application do some precalculations/precaching on startup and it can take lot of time
  • mentioned application have some memory leaks, so I can't use hibernate instead of shutdown

When user launching this app from his computer, he can't start work with it until this app finishes pre-initialization.

Is there any way to start RemoteApp session at the server startup (without actual user logon), so that the user could connect to this session from his computer later? I don't want to involve the user's computer to make it work.

I have tried to do it by Windows startup script, but have no luck - starting RDP session requires actual user session.

share|improve this question
    
This has been asked before but I can't find the link at the moment... –  Mark Henderson May 31 '12 at 12:37
    
I'm sorry, but why would you turn a server off over night? –  Bart De Vos Jun 6 '12 at 9:58
    
This is fire safety requirement in an office. There was an incident 2 years ago, "once bitten, twice shy" –  Rusted Jun 6 '12 at 10:44
    
Could you hibernate the server instead of shutting it down? The session would still be alive the next day, then. –  Hyppy Jun 12 '12 at 14:36
    
mentioned application have some memory leaks, so I can't use hibernate instead of shutdown –  Rusted Jun 12 '12 at 16:18
add comment

2 Answers

up vote 1 down vote accepted
+100

If the server is not accessible physically by everybody, you could try to configure autologin on the console and just drop the .rdp file(s) (with saved credentials if needed) into the startup.

After for example 5 minutes you can log off the console session again. If you login as dedicated user you will not startup all sessions if you log in to work as administrator

share|improve this answer
add comment

Maybe something as simple as couple of regedits or startup folder?

HKLM/SOFTWARE/MICROSOFT/WINDOWS/CURRENT VERSION/RUN
share|improve this answer
    
This registry key provides same functions as Windows startup script do. But, as I have said - starting RDP session requires actual user session. –  Rusted Jun 11 '12 at 13:26
    
unless you automate mstsc.exe with .rdp files like mentioned above. –  Aceth Jun 11 '12 at 14:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.