Automation

Explore practical automation guides, PowerShell scripts, Microsoft 365 workflows, and tools designed to reduce repetitive work and simplify everyday IT tasks.

About these Automation scripts

These are scripts and automation ideas for Microsoft 365, built around tools like PowerShell and Microsoft Graph. They are meant to save admins and power users time on repetitive jobs, and to be adapted to your own environment.

I test everything in my own Microsoft 365 test tenants before sharing it. Even so, please read any script before you run it, and try it in a test environment first.

New to these? Start with the picks below. Looking for something specific? The scripts are split into ones for everyday users and ones for admins.

Start here

New to Automation? These are good places to begin.

Latest Automation scripts

Common questions

Do I need to be a developer to use these scripts?

No. Many of them can be copied and adapted with only basic PowerShell knowledge. Knowing how to read a script before you run it is the most useful skill to have.

Is it safe to run these scripts?

Treat any script, including mine, as something to review first. Run it in a test tenant when you can, use an account with only the permissions it needs, and start with scripts that only read information before moving on to ones that change things.

Which PowerShell modules should I use?

The Microsoft Graph PowerShell SDK and Exchange Online PowerShell are the usual choices today. Older modules like MSOnline and AzureAD are deprecated and being retired, so it is best to avoid building anything new on them.

What permissions do Graph scripts need?

It depends on what the script touches. Graph uses specific permission names, and picking the least powerful one that works is a good habit. The Microsoft 365 tools page has a Graph permissions decoder that explains what each one allows.

Where should I start?

Start with the picks near the top of the Automation page. Everyday users can head to the user scripts, and admins can focus on the admin scripts covering reporting, cleanup and bulk changes.