Solved

Powershell script to test Exchange Server 2010 functionality after patching ?

Posted on 2015-02-01
10
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 8

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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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 8

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

Suggested Solutions

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 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