[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Powershell script to test Exchange Server 2010 functionality after patching ?

Posted on 2015-02-01
10
Medium Priority
?
344 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 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 10

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
 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

834 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