?
Solved

Powershell script to test Exchange Server 2010 functionality after patching ?

Posted on 2015-02-01
10
Medium Priority
?
315 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 800 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 400 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 800 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 12

Assisted Solution

by:Tej Pratap Shukla ~Dexter
Tej Pratap Shukla ~Dexter earned 800 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 12

Accepted Solution

by:
Tej Pratap Shukla ~Dexter earned 800 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 12

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

Ransomware Attacks Keeping You Up at Night?

Will your organization be ransomware's next victim?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with our Ransomware Prevention Kit!

Question has a verified solution.

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

This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 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