Skip to main content

Introducing dotMARC: a focused DMARC report analyzer

· 4 min read
dotMARC

Self-hosted DMARC aggregate report analyzer

Email authentication reporting, without the spreadsheet busywork.

One mailbox, multiple domains, and a clearer view of who is sending mail for your customers.

C# + Razor source lines
45,580
commits on main
758
releases
26

Launch snapshot · . Source-line count covers the application's C# and Razor files; tests and generated migration designers and model snapshots are excluded from refreshed counts.

Beta software

dotMARC is still in beta. There is the potential for rough edges, bugs, and changes between releases. Test it in your own environment and verify its results before relying on it for operational decisions.

Semantic Versioning

dotMARC adheres to semantic versioning, so you can expect version numbers to indicate the nature of changes and compatibility between releases. Current releases are in the 0.x range, indicating that the software is still in development and may introduce breaking changes before reaching a 1.0 release.

DMARC reports are useful, but they are not exactly pleasant reading. They arrive as XML, often in volume, and the work of figuring out which systems are sending mail for which domains can quickly turn into another spreadsheet.

dotMARC started as a set of scripts I wrote to read those reports for client domains. The scripts did the job, but they were only useful to me. I wanted something that could keep an eye on multiple domains from one mailbox, without turning into a sprawling email-security platform.

That is what dotMARC is: a self-hosted analyzer for DMARC aggregate reports, built to do one job well.

Archiving OneDrive to SharePoint with PowerShell and Microsoft Graph

· 9 min read

When someone leaves an organisation, their OneDrive can contain files that the rest of the team still needs. Downloading those files and uploading them to SharePoint works, but it isn't a particularly enjoyable way to spend an afternoon - especially when you have several accounts to deal with.

Microsoft Graph can copy the content directly between OneDrive and SharePoint without sending the files through your computer. These scripts wrap that process so you can archive one user's content, or queue a batch and check its progress later.

Auditing External SharePoint Sharing with PowerShell and Microsoft Graph

· 5 min read

Sharing links make collaboration easy, but they can also leave files accessible to people outside your organisation. When you need a tenant-wide view of where external access exists, checking sites one at a time quickly becomes tedious.

This PowerShell script uses Microsoft Graph to inventory SharePoint sites and inspect the sharing permissions on their drive items. It reports anonymous links and external direct shares, and can optionally include internal sharing links in a CSV report.

Uptime Reboot Policy with NinjaOne and PowerShell

· 4 min read

Long-running uptime can be useful, but it also increases risk: pending updates remain pending, patch windows get missed, and users eventually get hit with inconvenient restarts.

This script gives you a practical middle ground:

  • Detect when uptime exceeds a threshold
  • Notify the logged-in user with a Windows toast
  • Optionally let the user schedule an earlier reboot
  • Enforce a reboot deadline with a Scheduled Task
  • Write policy state and user action back to NinjaOne custom fields

Monitoring Microsoft Office / 365 Apps with PowerShell

· 2 min read

This script uses an undocumented Microsoft 365 API to check the latest version of Microsoft Office / 365 Apps and compares it to the installed version. It then sets a custom field in NinjaOne to indicate whether the latest security release (if there is one) is installed. It also sets fields to indicate the channel, installed version, update status and a card containing more detailed information.

Thanks to:
security

This article uses an undocumented API to check the latest version of Microsoft Office / 365 Apps. This API is subject to change without notice and may stop working at any time. Use at your own risk.

Initialise PSResourceGet (PowerShellGetv3) and PackageManagement

· One min read

PowerShell 5.1 as shipped with Windows 10 and 11 includes versions 1.0.0.1 of PackageManagement and PowerShellGet this old version cannot install most modern modules, nor can it self update properly.

In most cases fixing this runs into numerous issues with conflicting versions or files in use. This script is an adaptation of a script by Chris Taylor which takes a different approach to downloading the modules, has a bit more error checking and further installs the new PSResourceGet module which is the replacement for PowerShellGet.

Disabling (and Clearing) Browser Password Managers with PowerShell

· 2 min read

When deploying a password manager, one of the first things you'll want to do is disable the built-in password manager in your browsers. This is a pretty simple task, but it's also one that's easy to forget. It's also a good idea to clear out any passwords that may have been saved before you deployed your password manager.

We automate this for the two browsers we support on managed Windows devices (Edge and Firefox) using PowerShell. Here's how we do it.