Need to export list of ActiveSync-enabled users by mailbox database

mkllpit
mkllpit used Ask the Experts™
on
I just need to export a CSV with the list of users in an exchange 2007 specific mailbox database that has activesync enabled.  I've toyed with a few things but haven't found a good way to do it

Any ideas are appreciated

Thx!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Systems Engineer
Commented:
$path = "your path.csv"
$mailboxdb = get-mailboxdatabase | ? {$_.Name -eq "name of the db"}
$mailboxdb | get-casmaibox | ? {$_.ActiveSyncEnabled -eq $True} | Export-csv $path

Author

Commented:
Thanks Justin.  Just had a revelation and basically did the same albeit a little different
Justin YeungSenior Systems Engineer

Commented:
miss type get-casmailbox as casmaibox..........

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial