Works here. Does it only fail for that customer?
Missing parameter ActiveSyncBlockedDeviceIDs for Set-CASMailbox command
We have an automated powershell script which monitors devices and blocks or allows mailbox access based on certain criteria.
This script has been working fine till date, but for one of our customers we get an error message that 'ActiveSyncBlockedDeviceIDs is an un recognised parameter for command Set-CASMailbox'
The command used is as follows :
Set-CASMailbox -Identity <emailAddress> -ActiveSyncAllowedDeviceIDs @{Add = <easDeviceId> } -WarningAction 'SilentlyContinue'
We tried running the same directly from powershell as well, but still got the same error.
Things we checked :
mailbox has active license, has EAS enabled, user is able to successfully send and receive mails.
Please advise on the above. Is there any case where blocking is not allowed or is it an actual issue?
Permission given to Oauth app - Exchange.ManageAsApp
Assigned role - Exchage Administrator
Microsoft Exchange Online Management
1 answer
Sort by: Most helpful
-
Andy David - MVP 156.4K Reputation points MVP Moderator
2025-04-28T12:09:19.05+00:00