Powershell script to test Exchange Server 2010 functionality after patching ?

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,
LVL 9
Senior IT System EngineerIT ProfessionalAsked:
Who is Participating?
 
Tej Pratap Shukla ~DexterConnect With a Mentor Server AdministratorCommented:
0
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
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
 
Senior IT System EngineerIT ProfessionalAuthor Commented:
thanks Will, so how about the ActiveSync and the calendar Out of Office email is there any way to test it out ?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
Benjamin MOREAUConnect With a Mentor Project ManagerCommented:
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
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
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
 
Tej Pratap Shukla ~DexterConnect With a Mentor Server AdministratorCommented:
0
 
Senior IT System EngineerIT ProfessionalAuthor Commented:
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
 
Will SzymkowskiSenior Solution ArchitectCommented:
@Dexter why repeat what I have already said?

Will.
0
 
Tej Pratap Shukla ~DexterServer AdministratorCommented:
Hi Dear

What you want to say?
0
 
Will SzymkowskiSenior Solution ArchitectCommented:
And you actually accepted his comments. Awesome!

Will.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.