Share via

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

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

1 answer

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

    Works here. Does it only fail for that customer?

    Was this answer helpful?

    0 comments No comments

Your answer

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