Skype for Business Environment Report

This package of PowerShell scripts will gather data on a Skype for Business environment and store it into an XML data file. You can also create Microsoft Word reports and Microsoft Visio network diagrams based on the data gathered.

 
 
 
 
 
5 Star
(5)
740 times
Add to favorites
Lync
12/7/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • I'm getting this error
    1 Posts | Last post August 03, 2017
    • .\New-CsEnvDiagram.ps1 -EnvDataFile SFB2016_new.zip
      Starting report creation.
      Extracting CS Environment data file to C:
      Importing CS Environment data file.
      Creating diagram: SFB2016_new.vsdx
      Creating new instance of Visio to work with.
      Creating new Visio document.
      Adding page(s) to Visio document.
      Importing stencils...
      New-VisioDiagram :
      This file name is not valid.
      New-CsEnvDiagram.ps1:1169 char:1
      + New-VisioDiagram -DataFileName $script:XmlFileName -CsConfig $CsConfi ...
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : OperationStopped: (:) [New-VisioDiagram], COMException
          + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,New-VisioDiagram
      
      
  • New-CsEnvReport.ps1 error
    3 Posts | Last post June 02, 2017
    • I'm also getting this error when i run new-csenvreport.ps1.  It works great for a minute or two, chugging along and setting up the Word doc, but then dies on "Creating LisSubnet policy table"  Here's the error...
      
      New-WordTable : The number must be between 1 and 63.
      At S:\Restore\NEW\New-CsEnvReport.ps1:495 char:5
      + ...             New-WordTable -DataTable $dt -HeaderRow $true -FlipData $ ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : OperationStopped: (:) [New-WordTable], COMException
          + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,New-WordTable
    • The LIS & RGS sections can be a bit flaky. As a temporary workaround you can comment out the sections for them from the report. You would just need to add a # at the beginning of line 401 for RGS or 403 for LIS. I will do some additional testing and validation for the next release the see if I can figure out the issue. 
    • Do you have a fix for this?  LIS and RGS are needed in the report.
      
      Thanks very much.  :)
  • Any suggestions?
    1 Posts | Last post June 02, 2017
    • Someone else mentioned this too, but i don't see that an answer was given.  When running the script to create the Visio diagram, i'm getting this error:
      
      New-VisioSitePage : Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
      At C:\Scripts\LyncEnvReport\v6\New-CsEnvDiagram.ps1:621 char:3
      +         New-VisioSitePage -Site $Site -CurrentPage $CurrentPage
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (op_Addition:String) [New-VisioSitePage], RuntimeException
          + FullyQualifiedErrorId : MethodNotFound,New-VisioSitePage
      
      How can i fix this?
      
      Thanks again. Awesome script!
  • Internal servers not displayed?
    3 Posts | Last post May 19, 2017
    • Awesome script!  Just wondering though; In your screen capture on the right side of the Visio, it lists the PSTN gateway, SQL servers, etc.  On my Visio it just shows "All front end pool and front-end server addresses" and "All internal address space"  The rest of the Internal Servers area is just a blank background.  Could that be a bug, or maybe i'm not doing something right?
      
      Thanks!
    • If I understand you correctly, I think what you're describing is by design. I originally had the traffic rules for each port point to the individual servers/pools but it was messy and hard to understand. I decided to label the port groupings like they are the simplify the overall document.
    • Is there a chance you can add back the ability to display that information?  Maybe two different scripts (eg, basic vs detailed)?
  • Edge Server Credentials
    3 Posts | Last post May 19, 2017
    • We have 10 Edge servers in our deployment (5 pairs). Edge servers are not domain joined so they have only local accounts.  How do I specify the credentials for each (unfortunately due to InfoSec rules, each pair has a unique password)?  The script only allows for one credential and it looks like it is trying to authenticate using the domain form.
    • Unfortunately, there's not a super easy way to handle this. To be honest you're best bet in the short term may be to run it multiple times with the different credentials each time and combine the output.
    • I ran the script from an FE, but before running it i executed the following command on the FE:
      
      Set-item wsman:localhost\client\trustedhosts -value *
      
      After that the script was able to talk to the Edge servers and collect the necessary data.  After it's done, run:
      
      Clear-Item WSMan:\localhost\Client\TrustedHosts  (this will restore the original setting.)
      
      Hope this helps.
  • Error when creating Visio
    2 Posts | Last post May 15, 2017
    • Hi,
      
      I tried to create the Visio with New-CsEnvDiagram.ps1 but received the following error:
      Add-ShapeToPage :
      An exception occurred.
      At line:587 char:21
      + … ntOutline = Add-ShapeToPage -Shape “Rectangle” -Page $CurrentPage -X1 …
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : OperationStopped: (:) [Add-ShapeToPage], COMException
      + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Add-ShapeToPage
      
      Can I do something from my side to fix this?
      
      Thank you!
    • Hello Simon,
      Did you find a answer to this error ? I am having the same issue.
      
      Thanks
  • New-VisioSitePage Exception
    3 Posts | Last post April 04, 2017
    • Hey guys, any fix for this specific error?
      
      New-VisioSitePage : Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
      At C:\Cs Env Report v6.0\New-CsEnvDiagram.ps1:621 char:3
      +         New-VisioSitePage -Site $Site -CurrentPage $CurrentPage
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidOperation: (op_Addition:String) [New-VisioSitePage], RuntimeException
          + FullyQualifiedErrorId : MethodNotFound,New-VisioSitePage
    • Found this one about same error in PS scripts, but not understand what to change on this script to get Visio diagram created without errors.
      
      https://gallery.technet.microsoft.com/scriptcenter/An-Array-of-PowerShell-069c30aa
    • Hi!
      Have you solved this problem?
  • New-VisioSitePage Error
    2 Posts | Last post March 09, 2017
    • Loving this script...thank you very much for the effort! The only issue I'm having is the same as @Brian310011 
      
      Anyone else know of a way around it?
      
      New-VisioSitePage :
      Object name not found.
      At C:\scripts\Cs Env Report v6.0\New-CsEnvDiagram.ps1:621 char:3
      +         New-VisioSitePage -Site $Site -CurrentPage $CurrentPage
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : OperationStopped: (:) [New-VisioSitePage], COMException
          + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,New-VisioSitePage
    • Something seams to break in the script when the numbers of servers in the external serverpool is counted. Not beeing a PS expert I just tried to comment out the line that breaks the script and add a fixed value. This got the script to continue and draw almost the rest of the internal topology.
      
      Try changing this:
      -------------------------
      (Line 946): #$ExternalObjectCount = $ExternalPools + $ExternalServers | measure | select -ExpandProperty Count
      (Line 947) $ExternalObjectCount = 1
      
      ---------------------
      I realize how much effort that has been put into this project. Awsome job!! Thanks!
      
      
  • New-VisioSitePage Error
    1 Posts | Last post February 28, 2017
    • Your script creates my first site perfectly I am having a constant issue where Visio will not create a new page to import the second site. Is there a way to gather the environmental info from one site? 
      
      New-VisioSitePage :
      Object name not found.
      At C:\scripts\New-CsEnvDiagram.ps1:621 char:3
      +         New-VisioSitePage -Site $Site -CurrentPage $CurrentPage
      +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : OperationStopped: (:) [New-VisioSitePage], COMException
          + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,New-VisioSitePage
  • Visio Stencil Location
    1 Posts | Last post February 01, 2017
    • Just in case anyone else needs the Visio stencil download location: https://www.microsoft.com/en-gb/download/details.aspx?id=35772. Extract and copy to "My Shapes".
1 - 10 of 13 Items