albertwt Posted February 16, 2011 Posted February 16, 2011 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.
RabbieBurns Posted February 17, 2011 Posted February 17, 2011 why not just install the EMC locally? 1
Fraser-09 Posted February 18, 2011 Posted February 18, 2011 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 1
albertwt Posted February 18, 2011 Author Posted February 18, 2011 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.
Fraser-09 Posted February 18, 2011 Posted February 18, 2011 Actually, yes - I think you are correct. The /admin switch is ignored by server 08.... I'll check tomorrow. Fraser 1
theriver Posted February 18, 2011 Posted February 18, 2011 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. 1
Fraser-09 Posted February 18, 2011 Posted February 18, 2011 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 1
Ric_ Posted February 18, 2011 Posted February 18, 2011 @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? 1
sukh Posted February 25, 2011 Posted February 25, 2011 (edited) 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 Edited February 25, 2011 by sukh 1
albertwt Posted February 25, 2011 Author Posted February 25, 2011 yes that is just what I'm looking for Mr. sukh. many thanks for the solution provided.
albertwt Posted February 25, 2011 Author Posted February 25, 2011 @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
Arthur Posted February 26, 2011 Posted February 26, 2011 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. 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_tutorials/exchange-server-2010/management-administration/exchange-management-console-new-features-in-exchange-server-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/exchange-2010-install-management-tools It's also worth checking out Mike Pfeiffer's excellent blog as this has lots of useful tips for managing Exchange via PowerShell. Creating Scheduled Tasks for Exchange 2010 PowerShell Scripts Managing Exchange 2010 with Remote PowerShell Quick Tip: Add Exchange Management Shell Menu Item in PowerShell ISE 1
albertwt Posted February 26, 2011 Author Posted February 26, 2011 Yes Arthur, many thanks for the article, I learn from it now :-)
Tahsin Posted September 4, 2012 Posted September 4, 2012 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? 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now