Sometimes it can be hard to find where a number is configured in the system. Not all numbers are shown in the CSCP. And the only way find it is through poweshell commands.

You basically have to search for an identity’s lineuri with these commands: Get-CsUser, Get-CsAnalogDevice, Get-CsCommonAreaPhone, Get-CsExUmContact, Get-CsDialInConferencingAccessNumber, Get-CsTrustedApplicationEndpoint, Get-CsRgsWorkflow.

This script, does it all for you. Search for the number, and it will look through all the possibilities and show you where the number is located.

Search-LineURI is intended for Lync 2013, Windows server 2012 and PowerShell v3

Current version of the script is v2.2 (of December 2013). A new release is planned just before the upcoming Lync Conference in February, so stay tuned. To find the current release of the script, just follow the link to Search-LineURI in the menu.


4 thoughts on “Search-LineURI

  1. Hi Lasse, thank you for this script. I will use it to check the assignment of numbers to users or contacts.
    I tested it in my lab and it works fine. However, when I run it on one of my lync 2013 production servers it takes a very long time before results are shown. This is caused because we have a very large deployment ( 97 sites and 200+ pools). Is it possible that you add a switch to select the site. Like this: Search-LineURI.ps1 -Identity Site:NL -Search +31 -ListAsGridView

    • Hi again Marcel,
      I have actually been working with your deployment, and know the size of your topology.
      Sadly, the get- commandoes do not support the site element, and the task you requested seems “impossible”.
      Most of them do support the use of “-filter”, but the query would still have to parse the entire AD for objects matching your criteria. And the real trick, would then be to find a property which is used on all kind of objects and possible to filter by.

      Sorry I can not help you more, but if I figure out something smart, I’ll let you know.

      • Hi Lasse, thank you for your answer. You can’t allways get what you want :-) However i’m happy with the script.
        Keep up the good work. Thanks.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s