Script Download:
The script is available for download from https://gallery.technet.microsoft.com/How-to-determine-the-1f5d491e .
The sample code demonstrates how to determine the version of Exchange Server by VBScript.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery