Scripts
Every PowerShell script on this site, by topic. Each page explains what the script does, its parameters and examples, and has the full source to copy or download.
SharePoint
SharePoint Server
- Get-SPFarmInventory
Builds a CSV inventory of a SharePoint Server farm.
- Get-SPLargeLists
Finds lists and libraries that are approaching or over the list view threshold.
- Get-SPLogsByCorrelation
Collects ULS log entries for a correlation ID from the whole farm.
- Get-SPSiteStorageReport
Reports storage, quota use and staleness for every site collection.
- Test-SPUpgradeReadiness
Runs Test-SPContentDatabase and produces one readable report for upgrade planning.
SharePoint Online
- Get-SPOExternalUsersReport
Lists guest (external) users on every SharePoint Online site that allows sharing.
- Get-SPOListsNearThreshold
Finds large lists and libraries in a SharePoint Online site and shows their indexes.
- Get-SPOSiteInventory
Tenant-wide SharePoint Online site inventory: storage, sharing, staleness, hubs.
- Get-SPOUniquePermissions
Reports where permission inheritance is broken in a SharePoint Online site.
- Remove-SPOOldFileVersions
Trims old file versions in a document library, keeping the newest N versions.
- Restore-SPORecycleBinByUser
Restores items that one user deleted in a time window (mass-deletion recovery).
Migration
- Find-MigrationBlockers
Scans a file share (or any folder) for problems that block or complicate a move to SharePoint Online / OneDrive.