Link to home
Start Free TrialLog in
Avatar of jyoung127
jyoung127

asked on

enable or disable exchange activesync for all shared mailbox

Is there a way to change  ActiveSyncEnabled -eq 'True to false for all shared Mailboxes only?.

 
I know how to do  individual shared mailboxes but  have 100's to do them.
(Set-CASMailbox -Identity <mailbox> -ActiveSyncEnabled $false)
Avatar of footech
footech
Flag of United States of America image

Maybe I'm missing something, but to my knowledge Shared Mailboxes don't have direct logons, so therefore ActiveSync wouldn't apply.
Avatar of jyoung127
jyoung127

ASKER

Understood Footech but if I run a report to figure out what user mailbox that have the attribute ActiveSyncEnabled equal to true it would include Shared Mailboxes.

Maybe I should have ask how can I get a report for all mailboxes that have active synced enabled but does not include Shared mailboxes.

If I run this:
Get-CASMailbox -ResultSize Unlimited | where { $_.ActiveSyncEnabled -eq 'True'} | ft name, activesyncenabled –autosize > D:\ActiveSyncEnabled.csv

It includes all shared mailboxes, I was thinking if they are shared mailboxes it would equal false but nope.  weird huh?
Hello,

Yes I agree with Footech, we cant enable activesync for sharedmailboxes, did you unlock AD account and set password for shared mailboxes in your environment?
Please try to run the below cmldet to verify the recipienttypedetails.
Get-Mailbox "shared mailbox alias" |fl alias, displayname,recipienttypedetails

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks works for me