SfB/Lync Script – Get All Assigned Numbers

This script queries Skype for Business or Lync for all assigned numbers and displays them in a formatted table with the option to export to CSV. During processing LineURI’s that contain ‘ext=’ are extracted out into a DDI/DID and extension column.

This script collects Skype for Business or Lync Server objects including:
LineURI, Private Line, Analouge Lines, Common Area Phones, RGS Workflows, Exchange UM Contacts, Trusted Applications, Conferencing Numbers, Meeting Rooms, Hybrid Application Endpoint (On-premises Resource Accounts).

DOWNLOAD HERE

Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Related Articles

Allow Microsoft Teams Auto Attendants and Calls Queues to make external calls

This helper script will help you check and configure Microsoft Teams Auto Attendants and Call Queues to make external calls. View on GitHub here. https://github.com/ucgeek/Microsoft-Teams-AA-and-Queue-Voice-Policy-Helper  

Azure Virtual Desktop vs Windows 365

Azure Virtual Desktop and Windows 365 are both cloud-based virtual desktop technologies provided by Microsoft. In this article we'll look at some of the key Azure Virtual Desktop vs Windows 365 differences.

Phishing Awareness Training for Office 365

Phishing Awareness Training for Office 365 is available in Microsoft Defender. It can test your user's awareness of this common scamming technique and provide learning tools to help them upskill.

2 COMMENTS

  1. Hi Andrew, great tool. Thanks.
    I wanted to add a field for “users office location”
    How do I add to the search parameters in your Get all assigned numbers script ?

    • Great to hear you like the script. The office location is an AD attribute and is not returned as part of Get-CsUser I don’t believe. I’ve done something similar before like this:
      foreach ($AssignedNumber in $AssignedNumbers)
      {
      $ADMatch = Get-ADObject -SearchBase $ADPath -LDAPFilter “(msrtcsip-primaryuseraddress=$($AssignedNumber.SipAddress))” -Properties name, company, department, msrtcsip-primaryuseraddress, serialnumber
      $myObject2 = New-Object System.Object
      $myObject2 | Add-Member -type NoteProperty -name “LineURI” -Value $AssignedNumber.LineURI
      $myObject2 | Add-Member -type NoteProperty -name “DDI” -Value $AssignedNumber.DDI
      $myObject2 | Add-Member -type NoteProperty -name “Ext” -Value $AssignedNumber.Ext
      $myObject2 | Add-Member -type NoteProperty -name “Type” -Value $AssignedNumber.Type
      $myObject2 | Add-Member -type NoteProperty -name “Name” -Value $AssignedNumber.Name
      $myObject2 | Add-Member -type NoteProperty -name “SipAddress” -Value $AssignedNumber.SipAddress
      $myObject2 | Add-Member -type NoteProperty -name “Company” -Value ([string]$ADMatch.company)
      $myObject2 | Add-Member -type NoteProperty -name “Department” -Value ([string]$ADMatch.department)
      $myObject2 | Add-Member -type NoteProperty -name “EmployeeId” -Value ([string]$ADMatch.serialnumber)

      $Array2 += $myObject2

      }

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Latest Articles

Allow Microsoft Teams Auto Attendants and Calls Queues to make external calls

This helper script will help you check and configure Microsoft Teams Auto Attendants and Call Queues to make external calls. View on GitHub here. https://github.com/ucgeek/Microsoft-Teams-AA-and-Queue-Voice-Policy-Helper  

Azure Virtual Desktop vs Windows 365

Azure Virtual Desktop and Windows 365 are both cloud-based virtual desktop technologies provided by Microsoft. In this article we'll look at some of the key Azure Virtual Desktop vs Windows 365 differences.

Phishing Awareness Training for Office 365

Phishing Awareness Training for Office 365 is available in Microsoft Defender. It can test your user's awareness of this common scamming technique and provide learning tools to help them upskill.

Azure Virtual Desktop & Windows 365 Licencing Requirements

This article details the Microsoft Azure Virtual Desktop and Windows 365 licencing requirements.

Azure Virtual Desktop Review

This Azure Virtual Desktop review reveals a virtual desktop solution ready for the modern workplace. It's modern, fast, and scalable.