Skip to content

A gallery of sample scripts to manage all things Microsoft 365 in Bash or PowerShell using tools like PnP PowerShell, CLI for Microsoft 365, Graph SDK and many more.

License

Notifications You must be signed in to change notification settings

pnp/script-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Script Samples

This repository contains scripts for PnP PowerShell, CLI for Microsoft365, Graph SDK PowerShell, SPO PowerShell, and Azure CLI, that are based on real world examples of the scripts that you run to perform tasks.

If you are looking for the main site, rather than the repository, please visit: https://pnp.github.io/script-samples

Check out our YouTube Video: Introducing Script Samples

Authors

This repository's contributors are all community members who volunteered their time to share code samples. Work is done as an open source community project, which each sample contained in their own solution.

Contributions

These samples are direct from the feature teams, PnP team (https://aka.ms/m365pnp) or shared by the community. We welcome your input on issues and suggestions for new and existing samples. We welcome community contributions for sample scripts. If you have any questions, just let us know.

We are looking for contributions in the following areas:

  • Create a new scenario with a script
  • Update a scenario with an alternative script using another tool e.g. Adding a PnP PowerShell script to a scenario that only has CLI for Microsoft 365.
  • Feedback on the usability of the site, we are always looking to improve the experience.

In this repo, we are created a template submission folder and files, complete the readme, add any screenshots and submit your GitHub Pull Request, please contact us via issues list to communicate what your planning.

Check out our Contribution Guidance before submitting your pull requests, so that we can get your contribution processed as fast as possible.

If you need any support or want to know how to use GitHub then we have a great programme to support new contributors | sharing is caring.

Code of Conduct

This repository has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Disclaimer

THESE SAMPLES ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

Sharing is caring!