Skip to content

About

A collection of PowerShell scripts for managing and reporting on Microsoft 365 tenants.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

M365 PowerShell Toolkit

A collection of PowerShell scripts for managing and reporting on Microsoft 365 tenants, maintained by MattBoth.

Script catalogue

Script Service Description
Change Workspace Privacy From Public to Private Teams Change selected public Teams to private using SharePoint site URLs.
Export All Teams and Workspace Privacy to CSV Teams Export Team display names, GUIDs, SharePoint site URLs and privacy status to CSV.
Compare SharePoint Site Storage Reports SharePoint Compare latest and prior-date Graph report storage values, with historical validation flags.
Export Microsoft 365 Users and Line Managers Entra Export directory user properties and manager details, including manager email, to CSV.
Identify Organisational Asset Libraries SharePoint Display registered organisational asset libraries using SPO Management Shell.
Add an Organisational Asset Library SharePoint Register an existing image or Office template asset library using interactive prompts.

Browse by service

Service Scope
Teams Team membership, privacy and settings
SharePoint Sites, storage, permissions and sharing
Exchange Mailboxes, groups and mail configuration
Entra Users, groups and identity
Purview Retention and compliance
Reporting Reports across Microsoft 365 services

Getting started

  1. Download or clone this repository.
  2. Open the README for the script you want to run.
  3. Install its required modules and review its permission requirements.
  4. Configure a local copy and run its preview mode where available.
  5. Apply changes after reviewing the preview.

Module and PowerShell requirements vary by script. Check each script's README before running it.

Local configuration and output

Published scripts contain placeholders rather than real tenant details or credentials. Keep customised copies in local/, generated reports in output/, and logs in logs/. These folders are ignored by Git. Script copies ending in .local.ps1 are also ignored. Ignore rules do not remove files already tracked by Git.

Each script has its own folder containing its .ps1 file, a README, and any sanitised examples it needs. Place scripts under the service they primarily manage.

Contributing

Use descriptive Verb-Noun.ps1 names. Document required modules, permissions, configuration, preview behaviour, output and limitations. Keep credentials and real tenant data out of contributions. Describe validation honestly; distinguish local checks from testing against a live tenant.

Licence

MIT.

About

A collection of PowerShell scripts for managing and reporting on Microsoft 365 tenants.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages