Created
March 29, 2018 22:44
-
-
Save tostka/cc949a2b28989602e0f0875fcc4a1181 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Sites = "US;AU;EU" ; | |
$Sites=$Sites.split(";") ; | |
foreach ($Site in $Sites) { | |
write-host -foregroundcolor yellow "SITE: " $Site; | |
get-exchangeserver | | |
where { $_.Site -like "*$Site" } | | |
sort AdminDisplayVersion,ServerRole,Name | | |
select Name,ServerRole,AdminDisplayVersion ; | |
} ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
old ps code circa 2013, that I'm gisting up to neaten up old blog posts at toddomation.com