Skip to content

Instantly share code, notes, and snippets.

@amandadebler
Created May 16, 2016 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandadebler/628580fc1166a643deced2c2877a42df to your computer and use it in GitHub Desktop.
Save amandadebler/628580fc1166a643deced2c2877a42df to your computer and use it in GitHub Desktop.
Gets the version of all the SBAs in your Lync/Skype for Business topology using their web interfaces, so it works even if they're locked down. Only works for AudioCodes SBAs so far.
(Get-CsPool).where({$_.services -like "*registrar*" -and $_.services.where({$_ -like "WebServer*"}).count -eq 0}).computers | foreach { (Invoke-WebRequest -Uri "http://$_/Home/LogOn").content -match "(1\.\d+\.\d+\.\d+)" | out-null; [pscustomobject]@{PSTypeName='SBAVersion'; ComputerName = $_; Version = $matches[0] } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment