If you ever want to dig OCS enabled user's from AD, Below is a powershell command.
Syntax:
Get-Content -Path "c:\UsersList.txt" | Get-QADUser -LDAPFilter '(msRTCSIP-UserEnabled=TRUE)' -IncludedProperties 'msRTCSIP-PrimaryUserAddress' | select-object msrtcsip-primaryuseraddress,dn | Export-Csv -Path "c:\OCSusers.csv" -Verbose
Syntax:
Get-Content -Path "c:\UsersList.txt" | Get-QADUser -LDAPFilter '(msRTCSIP-UserEnabled=TRUE)' -IncludedProperties 'msRTCSIP-PrimaryUserAddress' | select-object msrtcsip-primaryuseraddress,dn | Export-Csv -Path "c:\OCSusers.csv" -Verbose
No comments:
Post a Comment