I needed a way to track which Exchange users were remotely retrieving their emails outside of the office on their phones and other email clients, so I pieced together this batch/pseudo VB script that can be ran from the Windows Task Scheduler at midnight. The only dependency/third party app required is the MS Log Parser executable. Also, for the SQL query to filter out the proper internal networks from the log file, you will have to edit the LOCALSUBNET and CHARLENGTH variables.
Continue reading “Batch Script – Parse MS Exchange IIS Log File, Filter All External Requests, and Email It”
Browse Recent:
Exchange 2010 OWA – Can’t Delete Messages
Out of nowhere today I rebooted my Exchange server (that has been up and running for several years without problems) then users could no longer delete their messages – they would just receive an unfriendly message stating that “An unexpected error occurred and your request could not be handled”. The event log showed the following error every couple of seconds:
Event 3, System.ServiceModel 3.0.0.0
WebHost failed to process a request. Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/20974680 Exception: System.ServiceModel.ServiceActivationException: The service '/EWS/Exchange.asmx' cannot be activated due to an exception during compilation. The exception message is: The type initializer for 'Microsoft.Exchange.Services.Wcf.MessageInspectorManager' threw an exception.. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Exchange.Services.Wcf.MessageInspectorManager' threw an exception. ---> System.InvalidOperationException: Unable to generate a temporary class (result=1). Continue reading "Exchange 2010 OWA – Can’t Delete Messages"