Disable Shared Mailbox in Hybrid environment

While working on an automation for one of our clients, We have used Disable-RemoteMailbox command in hybrid environment to disable the user mailboxes as well as shared mailboxes. User mailbox disablement is replicating correctly after removing the license group and running Disable-RemoteMailbox command on exchange onpremise Server but Shared mailbox although being disabled at on-premise…

Restrict APP Only Permissions to Specific mailboxes

This has been released by Microsoft a year or two ago but still many administrators are not aware about it. Problem Statement: Administrators do not want to provide app only permissions as it can grant blanket rights to every mailbox in the organization. Workaround: Administrators use to provide delegated rights, but many applications does not…

Exchange Online – Block External Forwarding

Many organizations want to block automatic forwarding set by users, and we have to do multiple configurations on Exchange online to achieve this. Here are the requirements: Block external forwarding set by users in OWA. Block external forwarding set thru outlook rules. Block external forwarding set by exchange admins using exchange console or shell. Allow…

Distribution Group based on Head of Organization

Another Day another PowerShell Spell Recently, I have been contacted by one of our clients to create a solution that will automate the membership of a distribution group based on organization head. Any users under hierarchy of Vice president should be member of this group. (so we will need to recursively fetch the direct reports…