Windows Server 2008 Thread, How to leave RDP session always on - Windows Server 2008 ? in Technical; Hi All,
I need to scheduled Exchange Management Console to run after the office hours but it always failed since ...
-
16th February 2011, 11:39 PM #1
- Rep Power
- 9
How to leave RDP session always on - Windows Server 2008 ?
Hi All,
I need to scheduled Exchange Management Console to run after the office hours but it always failed since my RDP session gets logged off overnight, is there any way to configure it to stay logged on (Windows Server 200 please ?
I'm having problem with my Remote Desktop session to Exchange Server as myself always gets logged off everynight ?
Thanks.
-
-
IDG Tech News
-
17th February 2011, 02:37 AM #2 why not just install the EMC locally?
-
Thanks to RabbieBurns from:
albertwt (17th February 2011)
-
18th February 2011, 12:53 AM #3
- Rep Power
- 9
What about running the task using the console?
You can connect onto the server's console using the /admin or /console switch after the hostname/IP Address. (Sometimes, you need to launch RDP using the switch. See %windir%\system32\mstsc.exe /? for the correct switch)
Or....
Could you run this as a scheduled task and then have the task log on as the Administrator (or which ever username your admin is)?
Fraser
Fraser
-
Thanks to Fraser-09 from:
albertwt (18th February 2011)
-
18th February 2011, 12:59 AM #4
- Rep Power
- 9
ah yes, many thanks for the suggestion to run as /admin console, but does it still works under Windows Server 2008 ?
i must run it using the Exchange management console.
-
-
18th February 2011, 01:07 AM #5
- Rep Power
- 9
Actually, yes - I think you are correct. The /admin switch is ignored by server 08.... I'll check tomorrow.
Fraser
-
Thanks to Fraser-09 from:
albertwt (18th February 2011)
-
18th February 2011, 07:34 AM #6 Just to give you another option :-D
You can control the session timeout settings by going to Admin Tools > Terminal Services > Terminal Services Configuration, in the 'connections' box right click on RDP-Tcp, click properties and go to Sessions.
The main disadvantage I've found with this is that, depending on how many people access the server, you can end up being locked out as a result of disconnected running sessions.
-
Thanks to theriver from:
albertwt (25th February 2011)
-
18th February 2011, 05:44 PM #7
- Rep Power
- 9

Originally Posted by
Fraser-09
Actually, yes - I think you are correct. The /admin switch is ignored by server 08.... I'll check tomorrow.
My bad. Admin switch is ignored
-
Thanks to Fraser-09 from:
albertwt (25th February 2011)
-
18th February 2011, 05:50 PM #8 @albertwt: What are you trying to do? If it is a simple PowerShell script, can't you just schedule that using Task Scheduler and then you don't need to be logged on?
-
Thanks to Ric_ from:
albertwt (25th February 2011)
-
25th February 2011, 04:46 PM #9 Hi,
Please see Configure Timeout and Reconnection Settings for Remote Desktop Services Sessions
You can adjust the settings as you need. You can run your script and disconnect and set the "End a disconnected session" to "Never" and "Idle Session Limit" to "Never".
Clarification on the /admin switch. http://support.microsoft.com/kb/947723
Regards
Sukh
Last edited by sukh; 25th February 2011 at 04:48 PM.
-
Thanks to sukh from:
albertwt (25th February 2011)
-
25th February 2011, 11:45 PM #10
- Rep Power
- 9
yes that is just what I'm looking for Mr. sukh.
many thanks for the solution provided.
-
-
25th February 2011, 11:47 PM #11
- Rep Power
- 9

Originally Posted by
Ric_
@albertwt: What are you trying to do? If it is a simple PowerShell script, can't you just schedule that using Task Scheduler and then you don't need to be logged on?
@Ric, yes I should've tried that way
-
-
26th February 2011, 01:09 AM #12 I know you have got it sorted now, but I thought it might be worth mentioning a few of the alternatives just in case you change your mind. 

Originally Posted by
albertwt
I must run it using the Exchange Management Console.
Literally everything you can do in the Exchange Management Console you can do in PowerShell remotely since the EMC is just a front-end.
You can check which PowerShell commands the console is running in the background either by going to View » View Exchange Management Shell Command Log or by clicking the little PowerShell icon in the lower-left corner of each dialog box which gets enabled after you have modified something (but before you click the OK or Apply buttons). Click this and you can see the PowerShell command that will be run by Exchange. See the following webpage for more details on this...
http://www.msexchange.org/articles_t...rver-2010.html
As RabbieBurns mentioned above, you could also install the Exchange Management Console on your own workstation as long as it meets the prerequisites...
http://exchangeserverpro.com/exchang...nagement-tools
It's also worth checking out Mike Pfeiffer's excellent blog as this has lots of useful tips for managing Exchange via PowerShell. 
-
Thanks to Arthur from:
albertwt (26th February 2011)
-
26th February 2011, 04:12 AM #13
- Rep Power
- 9
Yes Arthur, many thanks for the article, I learn from it now :-)
-
-
4th September 2012, 09:16 AM #14
- Rep Power
- 0
I tried to do below, but even using admin login, I found the options are disabled. Can you please help, how to resolve this disable issue?

Originally Posted by
theriver
Just to give you another option :-D
You can control the session timeout settings by going to Admin Tools > Terminal Services > Terminal Services Configuration, in the 'connections' box right click on
RDP-Tcp, click properties and go to Sessions.
The main disadvantage I've found with this is that, depending on how many people access the server, you can end up being locked out as a result of disconnected running sessions.
-
SHARE: 
Similar Threads
-
By MYK-IT in forum MIS Systems
Replies: 23
Last Post: 17th June 2010, 09:31 AM
-
By albertwt in forum Windows Server 2008 R2
Replies: 0
Last Post: 17th May 2010, 09:25 AM
-
By SYNACK in forum Windows Server 2008 R2
Replies: 0
Last Post: 19th March 2010, 12:27 PM
-
By Kamran7860 in forum Windows Server 2008
Replies: 1
Last Post: 3rd April 2009, 10:29 AM
-
By garym2000 in forum Windows Server 2008
Replies: 2
Last Post: 11th November 2008, 11:40 AM
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules