A collection of PowerShell scripts for managing and reporting on Microsoft 365 tenants, maintained by MattBoth.
| 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. |
| 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 |
- Download or clone this repository.
- Open the README for the script you want to run.
- Install its required modules and review its permission requirements.
- Configure a local copy and run its preview mode where available.
- Apply changes after reviewing the preview.
Module and PowerShell requirements vary by script. Check each script's README before running it.
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.
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.
MIT.