+ Post New Thread
Results 1 to 14 of 14
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 ...
  1. #1

    Join Date
    May 2009
    Location
    Sydney
    Posts
    282
    Thank Post
    322
    Thanked 3 Times in 3 Posts
    Rep Power
    11

    Question 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.

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,531
    Thank Post
    1,341
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    why not just install the EMC locally?

  3. Thanks to RabbieBurns from:

    albertwt (17th February 2011)

  4. #3

    Join Date
    Mar 2009
    Location
    Ayrshire, Scotland
    Posts
    78
    Thank Post
    8
    Thanked 5 Times in 5 Posts
    Rep Power
    12
    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

  5. Thanks to Fraser-09 from:

    albertwt (18th February 2011)

  6. #4

    Join Date
    May 2009
    Location
    Sydney
    Posts
    282
    Thank Post
    322
    Thanked 3 Times in 3 Posts
    Rep Power
    11
    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.

  7. #5

    Join Date
    Mar 2009
    Location
    Ayrshire, Scotland
    Posts
    78
    Thank Post
    8
    Thanked 5 Times in 5 Posts
    Rep Power
    12
    Actually, yes - I think you are correct. The /admin switch is ignored by server 08.... I'll check tomorrow.


    Fraser

  8. Thanks to Fraser-09 from:

    albertwt (18th February 2011)

  9. #6

    Join Date
    Apr 2006
    Posts
    390
    Thank Post
    23
    Thanked 95 Times in 61 Posts
    Rep Power
    45
    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.

  10. Thanks to theriver from:

    albertwt (25th February 2011)

  11. #7

    Join Date
    Mar 2009
    Location
    Ayrshire, Scotland
    Posts
    78
    Thank Post
    8
    Thanked 5 Times in 5 Posts
    Rep Power
    12
    Quote Originally Posted by Fraser-09 View Post
    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

  12. Thanks to Fraser-09 from:

    albertwt (25th February 2011)

  13. #8

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    183
    @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?

  14. Thanks to Ric_ from:

    albertwt (25th February 2011)

  15. #9

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    2,144
    Thank Post
    1
    Thanked 326 Times in 316 Posts
    Rep Power
    77
    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.

  16. Thanks to sukh from:

    albertwt (25th February 2011)

  17. #10

    Join Date
    May 2009
    Location
    Sydney
    Posts
    282
    Thank Post
    322
    Thanked 3 Times in 3 Posts
    Rep Power
    11
    yes that is just what I'm looking for Mr. sukh.
    many thanks for the solution provided.

  18. #11

    Join Date
    May 2009
    Location
    Sydney
    Posts
    282
    Thank Post
    322
    Thanked 3 Times in 3 Posts
    Rep Power
    11
    Quote Originally Posted by Ric_ View Post
    @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

  19. #12


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,367
    Thank Post
    241
    Thanked 2,813 Times in 2,076 Posts
    Rep Power
    812
    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.

    Quote Originally Posted by albertwt View Post
    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.


  20. Thanks to Arthur from:

    albertwt (26th February 2011)

  21. #13

    Join Date
    May 2009
    Location
    Sydney
    Posts
    282
    Thank Post
    322
    Thanked 3 Times in 3 Posts
    Rep Power
    11
    Yes Arthur, many thanks for the article, I learn from it now :-)

  22. #14

    Join Date
    Sep 2012
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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?

    Quote Originally Posted by theriver View Post
    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:
+ Post New Thread

Similar Threads

  1. New SIMS Server - Windows 2008 R2 & SQL 2008 R2
    By MYK-IT in forum MIS Systems
    Replies: 23
    Last Post: 17th June 2010, 09:31 AM
  2. Replies: 0
    Last Post: 17th May 2010, 09:25 AM
  3. Server 2008 R2 SP1 and RemoteFX bring full 3D over RDP
    By SYNACK in forum Windows Server 2008 R2
    Replies: 0
    Last Post: 19th March 2010, 12:27 PM
  4. Migrating from Windows 2000 Server to Windows Server 2008
    By Kamran7860 in forum Windows Server 2008
    Replies: 1
    Last Post: 3rd April 2009, 10:29 AM
  5. 2008 Server remote app & rdp dropping
    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 1 users browsing this thread. (0 members and 1 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
  •