PnP PowerShell Scripts
PnP PowerShell Scripts
Ready-to-use PowerShell scripts for SharePoint Online and Microsoft 365 administration:
| Script Name | Description | Tags |
|---|---|---|
| Create Site Columns | Automate site column creation across SharePoint sites | Site Content |
| Create Navigation | Build consistent navigation structures programmatically | Navigation Site |
| Create Content Types | Standardise content types with metadata definitions | Content Metadata |
| Create Term Store | Implement enterprise taxonomy and managed metadata | Metadata |
| Add Navigation Translations | Support multilingual navigation experiences | Navigation Multilingual |
| Update Folder Approval Status | Manage content approval workflows for individual folders | Folder Content Approval |
| Update Folder Approval Statuses | Bulk update approval statuses across multiple SharePoint folders | Folder Content Approval |
| Update Content Type Name | Rename content types while preserving configurations and data | Content Metadata |
| Update Pages Approval Status in a Folder | Manage page approval workflows for all pages within a specific folder | Folder Content Approval |
| Update Pages Content Type in a Folder | Bulk update content types for all pages within a specific folder structure | Folder Content |
| Create Group & Add Users | Automate SharePoint group creation and bulk user assignment for permission management | Site Security |
| Create Translations of Pages in Folder | Create translated page structure for all pages in a folder with duplicate checking | Multilingual Content |
| Add Group Members | Automate user provisioning with appropriate permission levels for SharePoint sites | Site Security |
| Create Folder Structure | Automate the creation of standardized folder hierarchies in SharePoint document libraries | Folder Site |
| Export Multiple Pages | Bulk export SharePoint pages for backup, migration, or content management | Content Site |
| Import Multiple Pages | Bulk import SharePoint pages for site restoration or content migration | Content Site |
| Site Template Export | Export SharePoint sites as reusable templates for standardisation and provisioning | Site |
| Site Template Apply | Apply exported site templates to provision new SharePoint sites with consistent configurations | Site |
| Create Group & Add Group Members | Automate SharePoint group creation and add multiple users as members in a single operation | Site Security |
| Compare Two Site Settings | Compare configuration settings between two SharePoint sites to identify differences and ensure consistency | Site |
| Get Site Crawl Logs | Retrieve SharePoint site crawl logs for search troubleshooting and optimisation analysis | Search Site |
| Get Site Search Settings | Retrieve comprehensive SharePoint site search settings and configuration details | Search Site |
| Move SharePoint Pages | Move pages between folders with single and batch operation support for content reorganization | Migration Content |
| Find All Links on Site Pages | Scan all SharePoint site pages to identify and report hyperlinks for content audits and migration planning | Migration Content |
| Set 404 Error Page | Configure custom 404 error page for SharePoint Online sites to improve user experience | Search Navigation |
| Update URLs in an Excel Column | Bulk update URLs in Excel spreadsheets for SharePoint migrations and domain consolidation projects | Migration Content |
Microsoft 365 Documentation
- SharePoint Documentation
- PnP PowerShell Documentation
- Microsoft 365 Documentation
- SharePoint Framework (SPFx)
PowerShell Resources
- PnP PowerShell - Cross-platform PowerShell module for Microsoft 365
- SharePoint Online Management Shell - Traditional PowerShell cmdlets
- Microsoft Graph PowerShell - Modern API access via PowerShell
- Azure PowerShell - Azure resource management
Tools & Utilities
- SharePoint Online Management Shell
- PnP PowerShell module installation guides
- Microsoft 365 CLI tools
- Development environment setup guides