Invoke-Win11SecurityAuditAndRepair

2.1.0

A clean, modern Windows health check and PC repair tool. On launch, it safely scans your security settings, drive health, and recent system errors without changing anything. From there, you can fix everything at once or pick individual cleanups, like resetting Windows Update, clearing clutter, or safely removing old upgrade files.

Installation Options

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

Install-Script -Name Invoke-Win11SecurityAuditAndRepair -RequiredVersion 2.1.0

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 waresoft. All rights reserved.

Package Details

Author(s)

  • waresoft

Tags

powershell windows security-audit system-repair windows-update bitlocker controlled-folder-access unquoted-service-paths smart-health fluent-ui self-elevating

Functions

Set-PillAppearance Show-FluentConfirm Switch-ActiveView Set-UiBusyState Apply-EventFilter Update-AuditDashboard Start-BackgroundJob Start-AuditScanOnly Start-AllRepairs Start-SingleRepair

Dependencies

This script has no dependencies.

Release Notes

v2.1.0
- Removed all hardcoded Windows 11 strings; OS name, edition, release version, build.UBR, and architecture are dynamically detected at runtime.
- Hidden console startup for both standalone launches and the UAC-elevated host process (-WindowStyle Hidden + Win32 ShowWindow SW_HIDE for owned consoles).
v2.0.0
- Redesigned into an interactive Windows Fluent Design WPF studio with zero external dependencies.
- Full compatibility with Windows PowerShell 5.1 and PowerShell 7.x.
- Runs ONLY Phase 1 security, hardware, event log, and repair-readiness scans on startup.
- Added option to run all 12 repairs sequentially or trigger any individual repair manually via async background runspaces.
- Replaced direct rd /s /q Windows.old deletion with the official cleanmgr.exe Previous Installations VolumeCaches handler.

FileList

Version History

Version Downloads Last updated
2.2.0 11 11/27/2026
2.1.0 (current version) 11 11/27/2026
1.0.0 12 11/23/2026