v1.2.0
SPSCleanDependencies - Release Notes
[1.2.0] - 2026-06-11
Added
-
SPSCleanDependencies.util.psm1:
- Add
Get-SQLMissingWebPartInfohelper to resolve missing WebPart class IDs to per-page locations. - Add
Remove-SPSMissingWebPartcleanup function (usesGetLimitedWebPartManagerand temporarily clears the siteReadOnlyflag). - Extend
SPMissingWebPartInfoclass with location fields (StorageKey,SiteID,WebID,ListID,DirName,LeafName). - All
Remove-SPS*functions now support-WhatIf/-ConfirmviaSupportsShouldProcess. - Import-time prelude (admin check,
powercfg, SharePoint snap-in load) is now gated behind theSPSCD_SKIP_PRELUDEenvironment variable so the module can be imported on CI / non-SharePoint hosts.
- Add
-
SPSCleanDependencies.ps1:
- Implement the
MissingWebPartcleanup branch (previously a no-op). - Implement the
SiteOrphancleanup branch by wiring up the existingRemove-SPSOrphanedSitefunction.
- Implement the
-
Pester test suite under
tests/covering the script and helper module, includingSupportsShouldProcesscoverage on everyRemove-SPS*function. -
.github/workflows/pester.ymlCI workflow running Pester 5.3+ andPSScriptAnalyzeronwindows-latest.
Fixed
- Replace
Write-HostwithWrite-OutputinRemove-SPSMissingSetupFileand clear remainingPSScriptAnalyzerwarnings via a newPSScriptAnalyzerSettings.psd1at the repo root (excludingPSUseSingularNounsto preserve the publicGet-SPSMissingServerDependenciesname). - Stop hiding real
Import-Modulefailures in the module Pester tests so future regressions surface immediately.
A full list of changes in each version can be found in the change log