Get-AssignedLineURI updated

I couldn’t just update the search-lineuri without going through the get-assignedlineuri.ps1 as well?

I have rewritten the script in much the same way as I wrote search script (parts of the code are now almost identical), and it saved me a lot of “space” and time. I have tried to reduce the number of times I gather information to a minimum, and to carry the found information through all the different functions and jobs.

Highlights from this update includes:

  • BUGFIX: CommonAreaPhone error fixed. Thanks to Peter
  • CODE CHANGE: crated new functions, tried to make them work smarter together.
  • NEW FEATURE: Progress bar to give an indication of progress in huge systems
  • DELETED FEATURE: -splitext is no longer a valid option, but run on all queries by default
  • BETA FEATURE: Summarize the numbers of Licenses required. Beta only, feedback wanted!

 

REQUEST: If you know exactly how licensing work, please test my beta portion of the script and see if it is correct. It is built upon the following assumptions:

Basic CAL: Is a user enabled for Lync, but has no conferencing policy which allows 3-party audio, video or sharing. Nor is the user able to schedule a conference (if anyone knows exactly which settings are behind the shift from basic to enterprise, please explain :)

Enterprise CAL: A user enabled for Lync with all functions, with out enterprise voice

Basic CAL, and Plus CAL: The same as a Basic CAL, but this user has Enterprise Voice enabled

Enterprise CAL ans Plus CAL: All the good things in one basket, no restrictions.

If you know my assumptions are wrong, have something to add or suggest, please let me know.

Advertisements

Lync Enterprise Voice oneliner: Find users with LineURI from a specific country

This oneliner helps you to find all users that has a LineURI defined in a Lync deployment

Get-CsUser -Filter {LineURI -like “tel:+47*”} | Sort-Object -Property LineUri | Format-Table Displayname,LineURI -AutoSize

  • Get-CsUser -Filter {LineURI -like “tel:+47*”}
    • Gets all the users with a LineUri defined with the +47 countrycode
    • -like requres that the number starts with tel:+47 wich is the start of a norwegian lineuri
    • -Filter  will get just the users we are interested in as is less resource intensive than Where-Object
  • | Sort-Object-PropertyLineUri
    • Takes the object from previous cmldet and sorts the object on the LineURI attribute
    • Will list all phone numbers in the correct order
  • | Format-TableDisplayname,LineURI-AutoSize
    • formats the output where we display the name of the user and the LineURI the user has

Lync Enterprise Voice oneliner: Find users with LineURI

This oneliner helps you to find all users that has a LineURI defined in a Lync deployment

Get-CsUser -Filter {LineURI -ne $Null} | Sort-Object -Property LineUri | Format-Table Displayname,LineURI -AutoSize

  • Get-CsUser-Filter {LineURI-ne $Null}
    • Gets all the users with a LineUri defined
    • -Filter  will get just the users we are interested in as is less resource intensive than Where-Object
  • | Sort-Object-PropertyLineUri
    • Takes the object from previous cmldet and sorts the object on the LineURI attribute
    • Will list all phone numbers in the correct order
  • | Format-TableDisplayname,LineURI-AutoSize
    • formats the output where we display the name of the user and the LineURI the user has