Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to verify that we are still with in our licence limits for public IM connectivity in Microsoft Office Communications Server 2007. Is there a way to report on which users have the PIC enabled on their account?

I see there are some schema extensions in AD related to other OCS settings, but I do not see one for PIC (unless it is encoded in msrtcsip-optionflags).

share|improve this question

1 Answer 1

up vote 1 down vote accepted

After some more research, I found the answer to my questions. The PIC settings are stored in the msrtcsip-optionflags field in Active Directory. The options are listed on this page, and public IM is option 0x1.

I put together the following Powershell script to get the user count (it uses Quest's snap-in):

$users = Get-QADuser -LdapFilter '(msrtcsip-primaryuseraddress=*)' -IncludedProperties "msrtcsip-options" -SizeLimit 0
[System.Collections.ArrayList] $picList = new-object System.Collections.ArrayList
foreach ($user in $users)
{
    if ($user["msrtcsip-optionflags"] % 2 -eq 1)
    {
        $picList.Add($user) |out-null
        $user.Name
    }
}
$picList.Count
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.