What phone numbers have you deployed in your OCS voice environment?

January 9, 2008

in AD, Microsoft, OCS


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


  1. Windows Powershell
  2. Quest ActiveRoles Management Shell for Active Directory (free)


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.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)