Solved

Powershell script to test Exchange Server 2010 functionality after patching ?

Posted on 2015-02-01
10
266 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
ID: 40582348
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
ID: 40582358
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
ID: 40582427
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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 200 total points
ID: 40582509
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
ID: 40583457
0
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 40583657
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
ID: 40583670
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 40583679
@Dexter why repeat what I have already said?

Will.
0
 
LVL 11

Expert Comment

by:Tej Pratap Shukla ~Dexter
ID: 40583682
Hi Dear

What you want to say?
0
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 40590090
And you actually accepted his comments. Awesome!

Will.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article runs through the process of deploying a single EXE application selectively to a group of user.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
how to add IIS SMTP to handle application/Scanner relays into office 365.

803 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