Solved

Powershell script to test Exchange Server 2010 functionality after patching ?

Posted on 2015-02-01
10
251 Views
Last Modified: 2015-02-04
Hi People,

Can anyone here plase share some Exchange Server 2010 powershell script that can be run or executed to test the following items after SP or Windows Update:

1. Email flow
2. Exchange server critical services
3. Autodiscover
4. Any other anomalies or problem after the patching

Because there are multiple servers in the Active Directory so I wonder if anyone here can automate or summarize the testing using a script.

Thanks,
0
Comment
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 200 total points
Comment Utility
You can use the following commends...
Mail Flow: test-mailflow
Services: get-services -computername <> | ? {$_.Name -like "msexch*"} | select name, status

Autodiscover: test-outlookwebservices -identity name@domain.com.

Also checking the queues as well is another good practice to ensure no mail items have been stuck.

Get-queue -server HTserver

Will.
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
Comment Utility
thanks Will, so how about the ActiveSync and the calendar Out of Office email is there any way to test it out ?
0
 
LVL 9

Assisted Solution

by:Benjamin MOREAU
Benjamin MOREAU earned 100 total points
Comment Utility
You can also use this to test your server : https://testconnectivity.microsoft.com/

It's easy and an official testing tool provided by Microsoft.
0
 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 200 total points
Comment Utility
Specifically for Activesync using Powershell you can use the following cmdlet...
Test-ActiveSyncConnectivity -URL https://mail.yourdomain.com/Microsoft-Server-ActiveSync

For out of office if autodiscover checks correctly, you can have a test mailbox with Out of Office Enabled and do a
Send-MailMessage -To <> -from <> -Subject <> -Body <> -smtpserver <>

Will.
0
 
LVL 11

Assisted Solution

by:Tej Pratap Shukla ~Dexter
Tej Pratap Shukla ~Dexter earned 200 total points
Comment Utility
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 7

Author Comment

by:Senior IT System Engineer
Comment Utility
Thanks guys. is there any script or cmd let which test the CAS functionality for all of the server types in the domain ?

Because after I apply the SP3 update in one of my HT-CAS server, the Web.Config content is changed to its default, I just want to make sure that when tomorrow I patch the last HT-CAS server, it won't kill the server CAS array or Active Sync.

For example:
from the previous value:
<codeBase version="0.0.0.0" href="file:///C:\Program Files\Microsoft\Exchange Server\V14\bin\Microsoft.Exchange.Common.IL.dll"

Into this value:
<codeBase version="0.0.0.0" href="file:///%ExchangeInstallDir%bin\Microsoft.Exchange.Common.IL.dll"/>
0
 
LVL 11

Accepted Solution

by:
Tej Pratap Shukla ~Dexter earned 200 total points
Comment Utility
0
 
LVL 53

Expert Comment

by:Will Szymkowski
Comment Utility
@Dexter why repeat what I have already said?

Will.
0
 
LVL 11

Expert Comment

by:Tej Pratap Shukla ~Dexter
Comment Utility
Hi Dear

What you want to say?
0
 
LVL 53

Expert Comment

by:Will Szymkowski
Comment Utility
And you actually accepted his comments. Awesome!

Will.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now