Updated to better support Standard Edition servers and updates for the software version table to support Skype for Business Server 2015.
Added -Template option for Word report creation. You can use a standard Word doc with pre-defined styles and header/footer configuration. If you don't define a template the standard formatting will be used. Also removed the auto-download option for Visio Stencils in the Visio diagram creator and updated it to use the 2012_Stencil_121412.vss stencil available at http://www.microsoft.com/en-us/download/details.aspx?id=35772
This is the heart and soul of the tools as it does the data collection and sorting. It's fairly straightforward and only has one command-line option which is -EdgeCredentials. The command-line option is to specify the non-domain credentials for connecting to the Edge server(s) for more enhanced data collection for things like CPU Core Count, RAM totals, and Certificates. If you don't specify Edge Credentials the script will prompt you to enter them, if you cancel the credential prompt the script will continue and still pull some limited data for the Edge servers.
I typically run this from one of the Front-End servers as it will require the Lync PowerShell tools. The other thing that is required is the ability to do DNS lookups against an external DNS server, so UDP 53 outbound. Get-Help context is available for the scripts, but it should be pretty straightforward.
This will produce a zip archive containing an XML file with all of the environment data. You will need to copy the zip file to a workstation that has Word and Visio installed to run the next two scripts for report generation. My testing and validation was done on Windows 7 with Office 2010 and Office 2013. It should work with Windows 8, and may work with older versions of Office.
This script will build a Word document from the data package collected from the above script. The only command-line option for this and the Visio script below is -LyncDataFile which is used to provide the file name for the file created with the Get-LyncInfo.ps1 script. If you don't specify the data package file name at the command-line the script will show the Open File dialog.
One huge caveat with the Word report creation script and the Visio script below is that if you move the mouse cursor in the window during creation it will break the process and mess up the reports.There's not much else to configure or change.
Again this script will accept the -LyncDataFile command-line option to specify the data file to build from, if you don't specify a data file the script will present the Open File dialog. Again, there's not much else to configure or change. This script does require the Office/Exchange/Lync 2013 Visio stencil pack to be in your "My Documents\My Shapes" folder. Don't worry if you don't have it downloaded, Pat Richard has been so gracious as to provide a section of the script that will download and place them in the correct folder.
Be extremely careful not to click in or on the Visio or PowerShell windows while it's running. I know it seems weird but something within PowerShell and/or Visio does not like it, specifically the AutoConnect method on the Pool to Site connectors will error out. I might have been able to bypass this by keeping the Visio window hidden during the drawing process, but it's kind of cool to watch it work.