-
Notifications
You must be signed in to change notification settings - Fork 0
Home
GitHub Action edited this page Jul 9, 2026
·
6 revisions
SPSCleanDependencies is a PowerShell script tool to clean Missing Server Dependencies in your SharePoint Farm.
- Dependency Detection (default): Detects missing server-side dependencies and outputs them to a JSON file.
- Dependency Cleanup (-Clean switch):
- Reads a JSON configuration file (if it exists) to identify missing dependencies.
- Handles the following types of missing dependencies:
- Features: Removes missing feature references.
- WebParts: Removes missing WebPart references (resolves each WebPart class to its per-page location and removes the instance via
GetLimitedWebPartManager). - Setup Files: Removes missing setup file references.
- Assemblies: Removes missing assembly references.
- Configuration: Updates SPSite owners with classic authentication and removes missing configuration references.
- Orphaned Sites: Removes orphaned site references via
ForceDeleteSite.
- Logging:
- Creates a log file in the Logs folder with a timestamped filename.
- Outputs script metadata, including version, start time, and PowerShell version.
- Results history & report:
- Archives the previous
Results\<FileName>.jsonintoResults\history\(timestamped) before each audit, with configurable retention. - Generates a self-contained
Results\<FileName>.htmlreport summarising the missing dependencies per category.
- Archives the previous
For details on usage, configuration, and parameters, explore the links below: