Category Archives: PowerShell

Script to remove mailbox permissions for a user, in bulk

I’ve seen few request for addressing the “remove all permissions a given user has across mailboxes” scenario, so I decided to give it a go. Here we’re talking about mailbox level permissions, and specifically Full Access. A script like that … Continue reading

Posted in Exchange Online, Microsoft 365, Office 365, PowerShell | Leave a comment

Did you know: Search-Mailbox adjusting permissions on target folder

While browsing the Unified audit log in search for events related to some tests I performed the other day, I noticed something interesting. Namely, the “copy search results” workflow initiated by good old Search-Mailbox cmdlet took care of stripping folder-level … Continue reading

Posted in Exchange Online, Microsoft 365, Office 365, PowerShell | Leave a comment

ExchangeOnlineManagement version 2.0.5 released

In case you missed it, a new version of the ExchangeOnlineManagement PowerShell module was released over the weekend, namely 2.0.5. The changelog for this version is rather short and only lists four new added cmdlets: Get-OwnerlessGroupPolicy and Set-OwnerlessGroupPolicy, used to … Continue reading

Posted in Exchange Online, Microsoft 365, Office 365, PowerShell | Leave a comment

Reporting on Manager and/or DirectReports in Office 365

Getting a list of all the direct reports for a given user, or similarly building the manager’s chain seems to be a common question lately, so I figured I’d write a short article on this. There are few different ways … Continue reading

Posted in Azure AD, Exchange Online, Graph API, Microsoft 365, Office 365, PowerShell | Leave a comment

Exploring Azure AD users and Security groups via the SCC PowerShell cmdlets

I’ve blogged previously about the fact that “plain” Azure AD Security groups are synced to EXODS and can in fact be used to assign permissions or added as members of Exchange groups. Similar observations were then made about “non-recipient” Azure … Continue reading

Posted in Azure AD, Exchange Online, Microsoft 365, Office 365, PowerShell | Leave a comment