Enterprise-grade Windows optimization with zero critical vulnerabilities. Designed for developers, IT professionals, and power users who demand both performance and security.
- β Zero Critical Vulnerabilities - All remote code execution risks eliminated
- β SHA256 Hash Verification - All downloads verified before execution
- β Administrator Validation - Built-in privilege checking
- β Secure Execution Policy - Automatic management and restoration
- β
No Remote Code Execution - Eliminated
irm | iex
patterns
Metric | Before | After | Improvement |
---|---|---|---|
Boot Time | 45s | 22s | 51% faster |
Available RAM | 6.2GB | 8.1GB | +1.9GB |
Disk Space | 45GB | 58GB | +13GB |
Running Services | 187 | 128 | -59 services |
Startup Programs | 23 | 7 | -16 programs |
Mode | Duration | Use Case |
---|---|---|
Full Mode | 30-45 minutes | First run, monthly maintenance |
QuickMode | 10-15 minutes | Weekly maintenance |
Ultra Mode | 5-10 minutes | Daily quick cleanup |
Deep-Clean-Pro/
β
βββ π .github/
β βββ π ISSUE_TEMPLATE/
β β βββ π bug_report.md
β βββ π tests/
β β βββ π§ͺ MyModule.Tests.ps1
β βββ π workflows/
β βββ βοΈ ci.yml
β βββ βοΈ psscriptanalyzer.yml
β
βββ π Documentation/
β βββ π CHANGELOG.md
β βββ π CODE_OF_CONDUCT.md
β βββ π CONTRIBUTING.md
β βββ π DEPLOYMENT_GUIDE.md
β βββ π RELEASE_NOTES.md
β βββ π SETUP_INSTRUCTIONS.md
β
βββ π Scripts/
β βββ π§ CheckMarkdownPSBlocks.ps1
β βββ π§ CreateDesktopShortcuts.ps1
β βββ β DeepCleanPro.ps1
β βββ π DEPLOY.ps1
β βββ β
VALIDATE.ps1
β βββ π§ Fix-WindowsPolicies.ps1
β
βββ π LICENSE
βββ π README.md
βββ π SECURITY.md
βββ π« .gitignore
# Clone and deploy automatically
git clone https://github.com/DiodacElectronics/Deep-Clean-Pro.git
cd Deep-Clean-Pro
# Full deployment with validation
.\DEPLOY.ps1
# Or deploy with GitHub Gist for online shortcuts
.\DEPLOY.ps1 -GistID "your_gist_id_here"
# Download latest release
Invoke-WebRequest -Uri "https://github.com/DiodacElectronics/Deep-Clean-Pro/releases/latest/download/DeepCleanPro.ps1" -OutFile "DeepCleanPro.ps1"
# Run with QuickMode (70% faster)
powershell -ExecutionPolicy RemoteSigned -File .\DeepCleanPro.ps1 -QuickMode
# Create secure desktop shortcuts
.\CreateDesktopShortcuts.ps1
# With custom GitHub Gist
.\CreateDesktopShortcuts.ps1 -GistURL "https://gist.githubusercontent.com/username/gist_id/raw"
# Full optimization (first run)
.\DeepCleanPro.ps1
# Prepare Windows policies (optional, reversible)
.\DeepCleanPro.ps1 -FixPolicies
# QuickMode - 70% faster
.\DeepCleanPro.ps1 -QuickMode
# Silent mode (no reboot)
.\DeepCleanPro.ps1 -NoReboot
# Non-interactive reboot (automation)
.\DeepCleanPro.ps1 -AutoReboot
# Conservative (production servers)
.\DeepCleanPro.ps1 -ConservativeMode
# Ultra-fast (5-10 minutes)
.\DeepCleanPro.ps1 -QuickMode -SkipUpdates -NoReboot
# Custom paths
$env:DEEPCLEANPRO_BASE_PATH = "D:\Tools\DeepClean"
$env:DEEPCLEANPRO_BACKUP_PATH = "E:\Backups"
# Parameter overrides
$env:DCP_QUICK_MODE = "true"
$env:DCP_NO_REBOOT = "true"
$env:DCP_CONSERVATIVE = "true"
# Run with environment config
.\DeepCleanPro.ps1
# Automated deployment with scheduled task
.\DEPLOY.ps1 -CreateScheduledTask -GistID "your_gist_id"
# Validation and testing
.\VALIDATE.ps1
.\DeepCleanPro.ps1 -QuickMode -WhatIf
# Run Pester tests locally from repo root
Invoke-Pester -Path .\.github\tests\MyModule.Tests.ps1 -CI
- β Windows Updates installation and management
- β DISM cleanup and component store optimization
- β Registry cleaning and optimization
- β Temporary file removal (recovers 5-15GB)
- β Windows Update cache cleanup
- β Disable unnecessary services and telemetry
- β Remove SMBv1 and other vulnerabilities
- β Configure privacy settings
- β Disable LLMNR and NetBIOS
- β Secure user account configuration
- β Power plan optimization
- β Visual effects configuration
- β Startup program cleanup
- β Service optimization
- β SSD TRIM enablement
- β Remove Xbox, Cortana, and unnecessary apps
- β OneDrive removal with backup
- β Microsoft Store app cleanup
- β Telemetry and tracking removal
After running CreateDesktopShortcuts.ps1
, you'll have:
- π Deep Clean Pro - Full Online - Complete optimization
- β‘ Deep Clean Pro - Quick Online - 70% faster execution
- π Deep Clean Pro - Silent Online - No reboot prompt
- π‘οΈ Deep Clean Pro - Conservative Online - Maximum compatibility
- π Deep Clean Pro - Ultra Online - Fastest mode (5-10 min)
- πΎ Deep Clean Pro - Local - Run from local installation
Parameter | Description | Default |
---|---|---|
-QuickMode |
Skip DISM & OneDrive backup (70% faster) | False |
-SkipUpdates |
Skip Windows Update installation | False |
-NoReboot |
No reboot prompt after completion | False |
-ConservativeMode |
Minimal changes for production systems | False |
-FixPolicies |
Run helper to set optimal Windows policies with backup | False |
-LogPath |
Custom log file location | Auto |
-BackupPath |
Custom backup directory | Auto |
-AutoReboot |
Non-interactive reboot at the end (with ShouldProcess) | False |
- OS: Windows 10 (1903+) or Windows 11
- PowerShell: 5.1 or later
- Privileges: Administrator required
- Disk Space: 2GB minimum for backups
- RAM: 4GB minimum recommended
- Network: Internet connection for updates
# Clone repository
git clone https://github.com/DiodacElectronics/Deep-Clean-Pro.git
cd Deep-Clean-Pro
# Run automated deployment
.\DEPLOY.ps1
- Go to gist.github.com
- Create new gist with
DeepCleanPro.ps1
- Copy gist ID from URL
- Update shortcuts:
.\DEPLOY.ps1 -GistID "your_gist_id_here"
# Run security validation
.\VALIDATE.ps1
# Test QuickMode
.\DeepCleanPro.ps1 -QuickMode -WhatIf
# Create weekly scheduled task
.\DEPLOY.ps1 -CreateScheduledTask
All online shortcuts include SHA256 verification:
$hash = (Get-FileHash $temp -Algorithm SHA256).Hash
if ($hash -match '^[A-F0-9]{64}$') {
# Execute only if hash is valid
}
Built-in administrator check:
if (-not $currentPrincipal.IsInRole([Administrator])) {
Write-Error "Administrator privileges required"
exit 1
}
Process-scoped policy change with best-effort restoration:
$originalPolicy = Get-ExecutionPolicy -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process -Force
# ... script execution ...
Set-ExecutionPolicy -ExecutionPolicy $originalPolicy -Scope CurrentUser -Force
Automate safe policy preparation with backup/restore support:
# From main script
.\DeepCleanPro.ps1 -FixPolicies
# Or directly
.\Scripts\Fix-WindowsPolicies.ps1 -BackupPath "$env:TEMP\PolicyBackup.json" -NoPause
# Restore later if needed
.\Scripts\Fix-WindowsPolicies.ps1 -RestoreBackup -BackupPath "C:\Path\PolicyBackup.json"
Operation | Full Mode | QuickMode | Saved |
---|---|---|---|
DISM Cleanup | 10-15 min | Skipped | 10-15 min |
OneDrive Backup | 5-20 min | Skipped* | 5-20 min |
Windows Updates | 10-15 min | Optional | 0-15 min |
Registry Cleanup | 2-3 min | 1 min | 1-2 min |
Total | 30-45 min | 10-15 min | 60-70% |
*OneDrive backup skipped with safety warnings
# Solution 1: Unblock file
Unblock-File -Path .\DeepCleanPro.ps1
# Solution 2: Set execution policy
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
# Right-click PowerShell and select "Run as Administrator"
# Or use:
Start-Process powershell -Verb RunAs
# Check disk space
Get-Volume | Select-Object DriveLetter, @{n='FreeGB';e={[math]::Round($_.SizeRemaining/1GB,2)}}
# Use custom backup path
$env:DEEPCLEANPRO_BACKUP_PATH = "D:\Backup"
.\DeepCleanPro.ps1
# Use automatic restore point
rstrui.exe
# Re-enable specific service
Set-Service -Name "ServiceName" -StartupType Automatic
Start-Service -Name "ServiceName"
- π SECURITY: Eliminated all remote code execution vulnerabilities
- π SECURITY: Added SHA256 hash verification for downloads
- π SECURITY: Built-in administrator privilege validation
- β‘ NEW: QuickMode - 70% faster execution
- π§ NEW: Environment variable support
- π NEW: Enhanced progress indicators
- π NEW: Ultra mode (Quick + Silent + NoUpdates)
- π NEW: Automated deployment script
- β NEW: Comprehensive validation script
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
git clone https://github.com/DiodacElectronics/Deep-Clean-Pro.git
cd Deep-Clean-Pro
# Run validation
.\VALIDATE.ps1 -Verbose
# Test changes
.\DeepCleanPro.ps1 -WhatIf
# Run Pester tests (from repo root)
Invoke-Pester -Path .\.github\tests -Output Detailed
Scripts\Fix-WindowsPolicies.ps1
includes-SkipAdminCheck
for automated tests only. Do not use it in production.
Β© 2025 Diodac Electronics. iSystem Development is a brand of Diodac Electronics. Deep-Clean-Pro β Β© 2025 Diodac Electronics / iSystem Development Licensed under the MIT License (see LICENSE).
βWindowsβ and βMicrosoftβ are trademarks of Microsoft Corporation.
Project Deep Clean Pro is independent, no affiliation implied.
All other trademarks are the property of their respective owners.
Deep Clean Pro creates automatic backups before making changes. To restore original settings:
# Restore from automatic backup (if available)
.\Scripts\Fix-WindowsPolicies.ps1 -RestoreBackup -BackupPath "C:\DeepCleanBackup\PolicyBackup_*.json"
# Or restore from system restore point
Checkpoint-Computer -Description "Before Deep Clean Pro" -RestorePoint
# Remove Deep Clean Pro files
Remove-Item -Path "C:\DeepCleanPro" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\DeepCleanBackup" -Recurse -Force -ErrorAction SilentlyContinue
# Remove desktop shortcuts
Remove-Item -Path "$env:USERPROFILE\Desktop\Deep Clean Pro*.lnk" -Force -ErrorAction SilentlyContinue
# Restore original execution policy
Set-ExecutionPolicy -ExecutionPolicy Restricted -Scope CurrentUser
- π Report Issues
- π¬ Discussions
- π§ Email Support
- π Wiki
If Deep Clean Pro helped you, please consider starring the repository!