WinClean

2.19

Комплексный скрипт для обновления и очистки Windows 11:
- Обновление Windows (включая драйверы)
- Обновление приложений через winget
- Очистка системы, браузеров, кэшей разработчика
- Очистка Docker/WSL
- Очистка Visual Studio
- Очистка DNS кэша и истории Run
- Опциональная блокировка телеметрии Windows
- Параллельное выполнение для максимальной скорости
- Подробный ц
Комплексный скрипт для обновления и очистки Windows 11:
- Обновление Windows (включая драйверы)
- Обновление приложений через winget
- Очистка системы, браузеров, кэшей разработчика
- Очистка Docker/WSL
- Очистка Visual Studio
- Очистка DNS кэша и истории Run
- Опциональная блокировка телеметрии Windows
- Параллельное выполнение для максимальной скорости
- Подробный цветной вывод + лог-файл
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name WinClean

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 bivlked. MIT License.

Package Details

Author(s)

  • bivlked

Tags

Windows Cleanup Maintenance PowerShell Windows11 DevTools Docker WSL npm pip nuget

Functions

Write-Log Update-Progress Clear-AllProgress Get-RunMarkerPath Set-RunMarker Clear-RunMarker Restore-RestorePointFrequency Invoke-StaleMarkerRecovery Test-InteractiveConsole Test-InternetConnection Test-PSGalleryConnection Test-ScriptUpdate Invoke-ScriptUpdate Install-ModuleWithTimeout Install-PackageProviderWithTimeout Get-WindowsUpdateWithTimeout Test-PendingReboot Get-FolderSize Get-FolderSizeChecked Format-FileSize ConvertFrom-HumanReadableSize Test-PathProtected Remove-FolderContent Remove-FilesByPattern New-SystemRestorePoint Update-WindowsSystem Update-Applications Clear-TempFiles Clear-BrowserCaches Clear-WindowsUpdateCache Get-RecycleBinSize Get-RecycleBinItemCount Clear-WinCleanRecycleBin Clear-SystemCaches Clear-EventLogs Clear-DNSCache Clear-PrivacyTraces Set-WindowsTelemetry Clear-WindowsOld Clear-DeveloperCaches Test-DiskpartCompactionFailed Clear-DockerWSL Clear-VisualStudio Clear-KernelDumps Show-DiskSpaceReport Get-SupersededDriverCandidate Get-RedundantDriverPackage Clear-DriverStore Measure-FreeSpaceGain Invoke-DISMCleanup Invoke-StorageSense Show-Banner Show-FinalStatistics Show-FinalStatisticsBody Write-StatLine Write-ResultJson Invoke-Phase Start-WinClean

Dependencies

This script has no dependencies.

Release Notes

v2.19: Contract and documentation round - -SkipCleanup now skips ALL cleanup categories, result JSON gains a tri-state PhasesSkipped, AppUpdatesCount renamed to AppUpdatesOffered (offered, not installed), full docs overhaul
v2.18: Correctness and hardening follow-up from external code review - diskpart failure detection, driver-store accounting, strict superseded-version rule, exact bootstrap host allowlist
v2.17: Silent failure hardening - operations that quietly do nothing now say so instead of reporting success
v2.16: Driver store cleanup, disk space report, kernel dump cleanup, 9 audit fixes (Delivery Optimization path, TEMP age filter, winget exit codes)
v2.15: ResultJsonPath for automated testing, one-command install/run (get.ps1, install.ps1), integration test suite
v2.14: Log persistence fix, correct npm/Firefox cache paths, localized size parsing, faster DISM/EventLogs, UI fixes
v2.13: Statistics accuracy fixes, efficiency improvements, registry cleanup
v2.12: PS 7.4+ compatibility, improved statistics (Docker/WSL/RecycleBin), ReportOnly accuracy
v2.11: Added timeouts for winget/DISM operations, fixed version display, improved reliability
v2.10: Added auto-update check at startup (checks PSGallery for new version)
v2.9: Fixed PSWindowsUpdate installation hanging (TLS 1.2, timeouts)

FileList

Version History

Version Downloads Last updated
2.19 (current version) 3 7/22/2026
2.13 400 1/17/2026
2.11 22 1/17/2026
2.10 12 1/17/2026
2.9 7 1/17/2026