Create an Exchange Online report on SPAM, phishing, and malware using PowerShell

It’s often useful for businesses to gather statistics on their current email traffic. This can be done via the Defender Portal in Microsoft 365 or using PowerShell. Generally, the standard Exchange Online Protection already allows you to view and analyze a significant amount of data (this feature is included in most standard plans; see Business or Enterprise plans ). However, it’s …

Find orphaned GPOs via PowerShell before migrating to Intune

Many companies have already fully transitioned to Endpoint Management Intune and no longer need GPOs (Group Policy Objects). Others are in the preparatory stages. Therefore, I would like to provide some assistance for identifying orphaned Group Policy Objects. These can be relatively easily found and, if necessary, removed using PowerShell. I’ve written a small script …

FullAccess Permissions in Exchange Online with additional information

In mid-March, I received an email from a reader (Sebastian) asking if it was possible to read out all full access permissions and then enrich this information with additional details. Specifically, it was about the department, meaning that the mailbox, authorized user, and the department of the authorized user should be output to a CSV …

Cleanup Active Directory groups with PowerShell

Taking care for local Active Directory (if it is still present) is one of the most important tasks, so you may need also cleanup disabled users from groups. Sometimes you don’t want to delete users but only removing them from AD groups is required (often for licensing issues etc.) I’ve had that case and wrote …