├── PowerShell Scripts ├── Delete-CMApplicationDeployments.ps1 ├── Delete-CMApplicationsAndContentSource.ps1 ├── Delete-CMComplianceBaselineDeployments.ps1 ├── Delete-CMComplianceBaselines.ps1 ├── Delete-CMComplianceItems.ps1 ├── Delete-CMDriverPackagesAndContentSource.ps1 ├── Delete-CMPackageDeployments.ps1 ├── Delete-CMPackagesAndContentSource.ps1 ├── Delete-CMTaskSequenceDeployments.ps1 ├── Delete-CMTaskSequences.ps1 ├── Identify-OrphanedContentInConfigMgrPackageSource.ps1 └── Invoke-PackageSourceCleanup.ps1 ├── README.md └── SQL Queries ├── Active Applications not deployed or referenced in a Task Sequence.sql ├── Application deployments with 0 deployment results or targeted at 0 resources.sql ├── Boot images not referenced by a Task Sequence.sql ├── Collections with 0 members.sql ├── Compliance Baseline deployments with 0 deployment results or targeted to 0 resources.sql ├── Compliance Items not used in a Compliance Baseline.sql ├── Deployed Applications with no Last Enforcement Message in the last 180 days.sql ├── Disabled Compliance Baselines.sql ├── Disabled Task Sequences.sql ├── Driver Packages not referenced in a Task Sequence.sql ├── Enabled Compliance Baselines not deployed.sql ├── OS Image Packages not referenced in a Task Sequence.sql ├── OS Upgrade Packages not referenced in a Task Sequence.sql ├── Retired Applications.sql ├── Software Update Deployment Packages not referenced by an Automatic Deployment Rule.sql ├── Software Update Groups not deployed.sql ├── Standard Package deployments with 0 deployment results or targeted to 0 resources.sql ├── Standard Packages not deployed or referenced in a Task Sequence.sql ├── Superseded Applications.sql ├── Task Sequence deployments with 0 deployment results or targeted to 0 resources.sql ├── Task Sequence deployments with no execution history in the last 180 days.sql └── Task Sequences not deployed.sql /PowerShell Scripts/Delete-CMApplicationDeployments.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMApplicationDeployments.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMApplicationsAndContentSource.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMApplicationsAndContentSource.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMComplianceBaselineDeployments.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMComplianceBaselineDeployments.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMComplianceBaselines.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMComplianceBaselines.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMComplianceItems.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMComplianceItems.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMDriverPackagesAndContentSource.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMDriverPackagesAndContentSource.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMPackageDeployments.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMPackageDeployments.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMPackagesAndContentSource.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMPackagesAndContentSource.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMTaskSequenceDeployments.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMTaskSequenceDeployments.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Delete-CMTaskSequences.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Delete-CMTaskSequences.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Identify-OrphanedContentInConfigMgrPackageSource.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Identify-OrphanedContentInConfigMgrPackageSource.ps1 -------------------------------------------------------------------------------- /PowerShell Scripts/Invoke-PackageSourceCleanup.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/PowerShell Scripts/Invoke-PackageSourceCleanup.ps1 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/README.md -------------------------------------------------------------------------------- /SQL Queries/Active Applications not deployed or referenced in a Task Sequence.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Active Applications not deployed or referenced in a Task Sequence.sql -------------------------------------------------------------------------------- /SQL Queries/Application deployments with 0 deployment results or targeted at 0 resources.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Application deployments with 0 deployment results or targeted at 0 resources.sql -------------------------------------------------------------------------------- /SQL Queries/Boot images not referenced by a Task Sequence.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Boot images not referenced by a Task Sequence.sql -------------------------------------------------------------------------------- /SQL Queries/Collections with 0 members.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Collections with 0 members.sql -------------------------------------------------------------------------------- /SQL Queries/Compliance Baseline deployments with 0 deployment results or targeted to 0 resources.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Compliance Baseline deployments with 0 deployment results or targeted to 0 resources.sql -------------------------------------------------------------------------------- /SQL Queries/Compliance Items not used in a Compliance Baseline.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Compliance Items not used in a Compliance Baseline.sql -------------------------------------------------------------------------------- /SQL Queries/Deployed Applications with no Last Enforcement Message in the last 180 days.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Deployed Applications with no Last Enforcement Message in the last 180 days.sql -------------------------------------------------------------------------------- /SQL Queries/Disabled Compliance Baselines.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Disabled Compliance Baselines.sql -------------------------------------------------------------------------------- /SQL Queries/Disabled Task Sequences.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Disabled Task Sequences.sql -------------------------------------------------------------------------------- /SQL Queries/Driver Packages not referenced in a Task Sequence.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Driver Packages not referenced in a Task Sequence.sql -------------------------------------------------------------------------------- /SQL Queries/Enabled Compliance Baselines not deployed.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Enabled Compliance Baselines not deployed.sql -------------------------------------------------------------------------------- /SQL Queries/OS Image Packages not referenced in a Task Sequence.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/OS Image Packages not referenced in a Task Sequence.sql -------------------------------------------------------------------------------- /SQL Queries/OS Upgrade Packages not referenced in a Task Sequence.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/OS Upgrade Packages not referenced in a Task Sequence.sql -------------------------------------------------------------------------------- /SQL Queries/Retired Applications.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Retired Applications.sql -------------------------------------------------------------------------------- /SQL Queries/Software Update Deployment Packages not referenced by an Automatic Deployment Rule.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Software Update Deployment Packages not referenced by an Automatic Deployment Rule.sql -------------------------------------------------------------------------------- /SQL Queries/Software Update Groups not deployed.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Software Update Groups not deployed.sql -------------------------------------------------------------------------------- /SQL Queries/Standard Package deployments with 0 deployment results or targeted to 0 resources.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Standard Package deployments with 0 deployment results or targeted to 0 resources.sql -------------------------------------------------------------------------------- /SQL Queries/Standard Packages not deployed or referenced in a Task Sequence.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Standard Packages not deployed or referenced in a Task Sequence.sql -------------------------------------------------------------------------------- /SQL Queries/Superseded Applications.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Superseded Applications.sql -------------------------------------------------------------------------------- /SQL Queries/Task Sequence deployments with 0 deployment results or targeted to 0 resources.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Task Sequence deployments with 0 deployment results or targeted to 0 resources.sql -------------------------------------------------------------------------------- /SQL Queries/Task Sequence deployments with no execution history in the last 180 days.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Task Sequence deployments with no execution history in the last 180 days.sql -------------------------------------------------------------------------------- /SQL Queries/Task Sequences not deployed.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SMSAgentSoftware/ConfigMgrCleanup/HEAD/SQL Queries/Task Sequences not deployed.sql --------------------------------------------------------------------------------