Report for who has ActiveSync enabled Accept for members of one specific group
I needs to generate report for all users with ActiveSync enabled
and are not members of "EnabledAS" group.
I have all enabled activesync users:
$Mailboxes = Get-CasMailbox -Filter {ActiveSyncEnabled -eq $true} -ResultSize Unlimited
$Mailboxes | ??
June 5th, 2012 7:59am
Hi
Please try the command
Get-CasMailbox -ResultSize Unlimited | Where {$_.ActiveSyncEnabled -eq $true} | Export-CSV <CSVPath>
CheersZi Feng
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 6th, 2012 5:36am
Thanks Zi,
I got it with this:
Get-QADUser -SizeLimit 5000 -NotMemberOf "xxx" |
%{Get-CasMailbox $_.name -Filter {ActiveSyncEnabled -eq $true}
-ResultSize Unlimited -ErrorAction:silentlycontinue}
June 10th, 2012 3:44pm