Posts RSS Comments RSS 237 Posts and 28 Comments till now

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

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

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.

Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
19 views

Trackback this post | Feed on Comments to this post

Leave a Reply