What phone numbers have you deployed in your OCS voice environment?
Issue
So you’ve deployed OCS 2007 with Voice in your organization and know you need a way to keep track of all the phone numbers your have assigned to your voice enabled users. One way of course to is to build a nice spreadsheet but that can be cumbersome to manage in a large environment where many people have their hands in the OCS environment.
Wouldn’t it be nice if you could just query AD to get the numbers? I love playing around in Powershell and couldn’t help myself from tinkering with this issue. Using ADExplorer I was able to locate the attribute on which to to base my query.
- msRTCSIP-Line
Prerequisites
Solution
Get-QADUser -DontUseDefaultIncludedProperties -IncludedProperties ‘msRTCSIP-Line’,name -ObjectAttributes @{’msRTCSIP-Line’='*’} | format-table name,’msRTCSIP-Line’
Of course you can modify the script to export the information to a CSV file or filter the results by OU very easily. Bottom line though is it works.
Happy scripting.



































