OCS – List All AD Enabled User Accounts That Are Also OCS Enabled
2012-02-06 Initial Post
Windows Server 2003 SP2
Office Communications Server 2007 (non-R2)
csvde -f getOCSUsersListCSVDE-Output.csv -r "(&(objectCategory=user)(msRTCSIP-UserEnabled=TRUE)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))" -s dc001 -l "displayName" -j .
See http://support.microsoft.com/kb/269181 for explanation of userAccountControl and using bitwise filters with LDAP.