Missing parameter ActiveSyncBlockedDeviceIDs for Set-CASMailbox command

Nithin 0 Reputation points
2025-04-28T12:04:00.3766667+00:00

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
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,902 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 156.4K Reputation points MVP Moderator
    2025-04-28T12:09:19.05+00:00

    Works here. Does it only fail for that customer?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.