Skip to main content

Posts

Showing posts with the label CAS

Where's CAS (lly) putting your CAS location on a map

As a bit of break from the EWS powershell series here is an interesting script that will show a Google Map of the location(s) of your CAS server's if you have them (In multiple Geographically locations) and the AD Site that the CAS Server is located in has the location property set in a format that can be Geo-coded by the Google maps API. For this script to work you must have set the Location property of the AD site where your CAS is located in and it needs to be formatted in a Geo-code format. eg  street, city, state, zip you can test it with http://gmaps-samples.googlecode.com/svn/trunk/geocoder/singlegeocode.html eg my settings looked like  So lets look at how the script works first we have a Get-ClientAccessServer loop Get-ClientAccessServer | foreach-object{ The next thing the script does is jumps out to use ADSI to access the server object for the CAS $soSvrObject = [ADSI]("LDAP://" + $_.DistinguishedName.ToString()) This script then uses ADSI to grab...
All sample scripts and source code is provided by for illustrative purposes only. All examples are untested in different environments and therefore, I cannot guarantee or imply reliability, serviceability, or function of these programs.

All code contained herein is provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.