This applies to LCS 2005sp1 environments but should also work on OCS2007 environments.
The challenge was to generate a list of LCS enabled users that were not disabled. I have a WMI query that will generate a list of LCS users, but I really wanted to be able to filter out the disabled users.
Get-WmiObject msft_sipesusersetting -filter "Enabled = true" | Select-Object DisplayName
As I had some other needs at the time, I added the telephone information as well to the query. Using get-member you can find a number of other different pieces of useful information to gather as well.
