Microsoft 365 & Power Platform Community

Script Samples

A little script. A lot less work.

Real-world scripts for Copilot, Microsoft 365, Power Platform and more.
Find a starting point, choose your tool, and make it your own.

424 samples108 contributorsOpen source. Community built.
Parker, the community porcupineSmall scripts. Big possibilities.

The script library

What will you automate today?

New to scripts? Start here
More products

Explore all 424 community samples

Report

Identifying SharePoint Site Creation Sources

Understanding how a SharePoint site was created is crucial for governance, compliance, and troubleshooting. In Microsoft 365, SharePoint sites can be created through various methods, such as Microsoft Teams, Viva Engage, the SharePoint Admin Center, and more. However, identifying the exact creation source can sometimes be challenging.

PnP PowerShell
Provision

Deactivate User License

This script connects to Micrsoft Graph and searches all Microsoft E3 Licenses for YAMMER_Enterprise licenses. It will then deactivate the Yammer license within Office 365, it can be used to remove other Office 365 licenses as well

Microsoft Graph PowerShell