Invoke-Win11SecurityAuditAndRepair

2.2.0

An automated, self-elevating Windows Security Audit & System Repair utility
with a Windows Fluent UI supporting Auto/Dark/Light theme synchronization.
On startup, it runs only non-destructive security, SMART, LPE, Defender,
and event log audits, then lets you execute all 12 repair routines at once
or individually.

Installation Options

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

Install-Script -Name Invoke-Win11SecurityAuditAndRepair

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 dark-mode light-mode self-elevating

Functions

Get-WindowsIsDarkMode Resolve-UseDarkMode Apply-ActiveTheme Set-ThemeBinding 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.2.0
- Added adaptive Auto / Dark / Light theme engine using an INotifyPropertyChanged ThemeManager with live Windows theme sync and native DWM title bar attributes.
- Added Auto | Dark | Light segmented pill switcher in the top header bar.
- Pure 7-bit ASCII script encoding for seamless PowerShell 5.1 and 7.x parsing regardless of UTF-8 BOM.
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 (current version) 11 11/27/2026
2.1.0 11 11/27/2026
1.0.0 12 11/23/2026