Repository navigation
3.0
🚀 WinUltix v3.0.0 — Major Architectural & Kernel Internals Release
Version 3.0.0 represents the largest low-level engineering overhaul in the history of WinUltix. I have unified all P/Invoke interop layers into a single core engine (Core_Helpers.ps1), migrated every heavy audit and execution workflow into real-time streamed background Runspaces ($UltixSync), replaced external Out-GridView windows with custom double-buffered dark WinForms grids, and introduced native kernel32.dll / ntdll.dll CPU topology and live DPC interrupt telemetry.
🧠 Core Engine & Architecture (Core_Helpers.ps1)
- Unified C# P/Invoke Runtime: Consolidated all native Win32/NT API calls into a single pre-compiled
WinUltixnamespace shared across the main UI thread and all background Runspaces:[WinUltix.NativeMethods]: Native Win32 DWM Dark Title Bars (DWMWA_USE_IMMERSIVE_DARK_MODE = 20) across all forms and modals + High-DPI GDI scaling (SetProcessDpiAwarenessContext(-5)).[WinUltix.ShellInterop]: Non-invasive shell and taskbar refresh viaSHChangeNotifyandSendMessageTimeout(WM_SETTINGCHANGE).[WinUltix.PrivilegeEnabler]: Process token privilege escalation (SeTakeOwnershipPrivilege,SeRestorePrivilege) for modifying TrustedInstaller-protected registry keys.[WinUltix.AppActivator]: Direct COMIApplicationActivationManagerinterop for deterministic Start Menu binary compilation.[WinUltix.ListViewColumnSorter]: High-speed case-insensitive column sorting for WinFormsListViewgrids.[WinUltix.CpuTopology]: Nativekernel32.dll!GetLogicalProcessorInformationExparser inspecting physical core masks,EfficiencyClass, and L3 Cache sizes.[WinUltix.NtDll]: Nativentdll.dll!NtQueryTimerResolution,NtSetTimerResolution(live0.5msclock request), andNtQuerySystemInformation(SystemInterruptInformation0x17) per-processor DPC telemetry.
- Real-Time
$UltixSyncRunspace Streaming (Invoke-AsyncTask): Pre-hydrates background Runspaces viaInitialSessionState(Get-UltixUserProfiles,Get-UltixFastSize,Set-ProtectedServiceStart,Get-UltixPowerAcIndex) and injects a thread-safe$UltixSynccontext (ConcurrentQueuelog streaming + live progress reporting polled every 150ms). - Unified UI Factories & Protected Modals: Added
New-UltixButton(withUseMnemonic = $false),New-UltixActionRow,Invoke-UltixAuditFlow,Enable-UltixDoubleBuffer,Show-ActionModal(withSelect All,Deselect All,Select Detected, and live selection counter), andShow-UltixGridModal(live search filter, column sorting, state-preserving checkboxes, andIsLockedrow protection for critical system services). - JSON Profile Snapshot Engine (
Export-WinUltixProfile/Import-WinUltixProfile): Exports and restores active Registry tweaks, custom SRP+IFEO rules, disabled Services, Telemetry Tasks, Affinity Lasso rosters, and Z7 Hardware Locks (WinUltix_Snapshot_v1). - Zero-Bloat Custom GDI+ Dark UI (
[WinUltix.DarkTabControl],[WinUltix.DarkProgressBar]& Color-CodedRichTextBox):[WinUltix.DarkTabControl]: Eliminated legacy Win32 white 3D borders (TCM_ADJUSTRECT0x1328WndProcoverride) and gray tab strips in favor of an owner-drawn dark header with hover tracking and an activeLightSkyBluetop accent bar.[WinUltix.DarkProgressBar]: Replaced the glossy Vista-era green progress bar with a flat, double-buffered dark GDI+ status bar featuring aSteelBluefill and a centeredREADY/0%–100%readout.- Semantic Log Terminal (
Write-GUI): Upgraded$global:infoBoxto a syntax-highlightedRichTextBoxthat automatically color-codes timestamps (DarkGray), section headers (Cyan),[OK]/[+]completions (LightGreen),[!]/WARNINGaudit flags (Orange), and[ERROR]/[-]failures (IndianRed).
🧹 Module Z1: Deep System Cleanup (Z1_Cleanup.ps1)
- Core Engine Consolidation: Replaced local directory walkers and CIM boilerplate with shared Runspace intrinsics (
Get-UltixFastSize,Get-UltixUserProfiles,Invoke-UltixAuditFlow, andNew-UltixActionRow), cutting module code footprint by ~40%. - Full Asynchronous Execution (
$UltixSync): MigratedInvoke-InteractiveCleanup(wevtutil.exe clchannel loops,takeown.exe/icacls.exeSID*S-1-5-32-544ACL overrides, and recursiveRemove-Itempasses) into an isolated background Runspace with real-time log and progress streaming. - High-Speed .NET I/O Enumeration: Replaced slow
Get-ChildItem -Recurse | Measure-Objectpipelines with a stack-based[System.IO.Directory]::EnumerateFilesscanner that skips NTFSReparsePointjunctions and survivesUnauthorizedAccessExceptionlocks. - Symmetrical Windows Update Service Hygiene: Added
try/finallystate preservation forwuauserv,bits,dosvc, andTrustedInstallerduringSoftwareDistribution,DeliveryOptimization, andLogs\CBSpurges—restarting only services that were actively running prior to cleanup. - Expanded Multi-Profile Browser & Shader Coverage: Added multi-profile enumeration (
DefaultandProfile *) for Chromium browsers (Chrome, Edge, Brave, Vivaldi) coveringCache,Code Cache, andGPUCache, alongsideDirectX D3DSCache, global/per-userWindows Error Reporting (WER)queues, andCBSservicing logs.
🗑️ Module Z2: Bloatware, Recall & OneDrive Amputation (Z2_Bloatware.ps1)
- 100% Asynchronous Execution Pipeline: Moved all 5 heavy I/O and CBS servicing executors (
Invoke-RemoveOneDrive,Invoke-RemoveCapabilities,Invoke-GarbageCollector,Invoke-RemoveBloatware, andInvoke-RemoveCapabilityStubs) off the UI thread into isolated Runspaces with live$UltixSynctelemetry. - Windows Recall & AI Lockdown (24H2 / 25H2 / 26H2): Added deep inspection and payload removal for the
RecallWindows Optional Feature (Disable-WindowsOptionalFeature -Online -FeatureName "Recall" -Remove) alongsideDisableAIDataAnalysisandTurnOffSavingSnapshotsGPO enforcement. - Granular 64-Item Bloatware Catalog: Unbundled grouped third-party casual games, social media clients, and OEM trialware suites into 64 individually selectable items (Spotify, TikTok, Netflix, Candy Crush, McAfee, Norton, Lenovo/Dell/HP stubs) with automatic
AppxAllUserStore\Deprovisionedlocking. - Transitive Appx Garbage Collector Hardening: Implemented a transitive closure loop for
Framework -> Frameworkdependency chains, addedIsResourcePackageexclusions, and shielded Windows 11 24H2–26H2 shell components (MicrosoftWindows.Client.*,Windows.CBSPreview) across both installed and provisioned stores. - Multi-Profile
HKEY_USERSOneDrive Amputation: Extended OneDrive registry inspection andRunhook neutralization across all loadedRegistry::HKEY_USERS\<SID>hives while evacuating lockedFileSyncShell64.dllshell extensions to%TEMP%.
🛡️ Module Z3: Registry, Dual-Layer SRP+IFEO & Gaming (Z3_Registry.ps1)
- Handle-Cached Registry Audit Engine (
Invoke-RegistryAudit): Implemented a per-run registry handle cache ($keyCachewith deterministic.Dispose()) and direct.NETRegistryKey.GetValue()inspection. Accurately distinguishes uninitialized(Default)keys ($null) from initialized empty strings (""required byInprocServer32for the classic Win10 context menu) and supportsMatchRegexevaluation. - Scoped Dual-Layer SRP + IFEO Lockdown: Hardened
Get-RegState_SRPto verify master Safer API switches (DefaultLevel = 262144,TransparentEnabled = 1). UpgradedInvoke-ApplySRPto enforce kernelUseFilter = 1+FilterFullPathsubkeys for custom.exetargets (preventing filename collisions across apps) while streaming backgroundgpupdate.exe /forcetoken refreshes via$UltixSync. - Live Win32 Shell Broadcasts: Replaced blunt
explorer.exetermination during Taskbar and Explorer tweaks with liveSHChangeNotifyandWM_SETTINGCHANGEbroadcasts, restartingexplorer.exeorSearchHost.exestrictly when flagged byRestartShell/RestartSearch. - New Low-Level Kernel, Boot & Gaming Rules:
- Added
Boot: Disable Explorer Startup Delay(StartupDelayInMSec = 0inExplorer\Serialize). - Added
Kernel: Consolidate SvcHost Processes(SvcHostSplitThresholdInKBdynamically calculated from physical RAM capacity). - Added
Gaming: Disable Multiplane Overlay (MPO)(OverlayTestMode = 5inHKLM:\SOFTWARE\Microsoft\Windows\Dwm). - Added
Gaming: Enable Windowed Game Optimizations (Flip Model)(non-destructiveSwapEffectUpgradeEnable=1;injection/removal inDirectXUserGlobalSettings). - Migrated WNS App Push/Toast notification blocks (
NoCloudApplicationNotificationandNoToastApplicationNotification) toHKLMmachine policies with cleanDELETE_VALUErevert support.
- Added
⚙️ Module Z4: Services, Power/Display Tuner & Native Start Menu Compiler (Z4_Services.ps1)
- TrustedInstaller / SYSTEM Service DACL Escalation: Integrated
Set-ProtectedServiceStartto dynamically enableSeTakeOwnershipPrivilegeandSeRestorePrivilegetokens, allowing WinUltix to cleanly lock or revert ACL-protected services (WaaSMedicSvc,DoSvc,WSAIFabricSvc) withoutAccess Deniedexceptions. - Interactive 8-Point Power & Display Optimizer (
Get-PowerDisplayState&Invoke-ApplyPowerDisplay): Upgraded the Power & Display button into a full, symmetrically reversible interactive modal usingGet-UltixPowerAcIndex. Audits and configures System Hibernation (hiberfil.sys), Standby/Sleep timeout, Monitor turn-off timeout (60 min AC), HDD/SATA AHCI spin-down (DISKIDLE), USB Selective Suspend (protecting DACs, VR headsets, and 4K/8KHz wireless dongles), Power Plan PCIe Link State Power Management (ASPM), 100% Minimum Processor AC state, and Display Content Adaptive Brightness Control (CABC/ OLED auto-dimming). - Asynchronous Service, Task & Start Menu Enforcement (
$UltixSync): MigratedInvoke-ApplyServices,Invoke-ApplyTasks, andClear-StartMenu(7-stage MDMConfigureStartPins+ COMIApplicationActivationManagernativestart2.bincompiler) to isolated background Runspaces. - Expanded Gaming & Office Service Profiles (51 Targets): Added SRUM disk-logging elimination (
DPS,WdiServiceHost,WdiSystemHost), NTFS Distributed Link Tracking (TrkWks), File History (fhsvc), Windows Insider (wisvc), Mobile/NFC bloat (WalletService,SEMgrSvc,autotimesvc,tzautoupdate), and legacy multicast discovery (SSDPSRV,upnphost,lmhosts). - Hardened Ghost Service & Driver Scanner: Filtered out per-user service templates (
SERVICE_USER_SERVICEbitmask0x40) to eliminate false positives (CDPUserSvc,OneSyncSvc) and normalized relative kernel root paths (SystemRoot\,\System32\).
🧰 Module Z5: Interactive Inspectors & DoH DNS Enforcer (Z5_Utilities.ps1)
- Replaced
Out-GridViewwith Native DarkShow-UltixGridModal: Eliminated external white PowerShell windows in favor of the unified, double-buffered WinFormsListViewmodal featuring DWM dark title bars, column sorting, and state-preserving live search filtering. - Full System Services Inspector with Locked Critical Rows (
Show-ServicesGrid): Displays the complete OS service table while marking 25 critical kernel/RPC/SCM/Defender boot services in red ([CRITICAL - LOCKED]viaIsLocked = $true) so they remain visible and searchable but cannot be accidentally checked or disabled. Added a secondaryRestore to Manual (Demand)action andTrustedInstallertoken escalation. - Scheduled Tasks Inspector (
Show-TasksGrid): Built a high-signal Task Scheduler scanner that filters out core Windows OS noise to expose third-party updaters ([3rd-Party / Root]), Microsoft app bloat/telemetry ([MS App / Updater],[MS Telemetry / Bloat]), and orphaned tasks pointing to missing executables ([GHOST / Missing Exe]). Supports both permanent unregistration and non-destructive state toggling. - Deep Startup Manager (
Show-StartupGrid): Expanded autorun auditing acrossRun,RunOnce,Policies\Explorer\Run(x64 & WOW6432Node), and Startup folders. Added binary header & UTCFILETIMEdecoding forStartupApprovedkeys, enabling non-destructive Task Manager state toggling (Enable/Disable) alongside permanent deletion. - Classic Control Panel Frame for Devices & Printers: Restored the full Control Panel namespace path (
shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\0\::{A8A91A66-3A7D-4424-8D24-04E180695C7A}) inStart-ClassicPrintersso the window loads with the native top command bar (Add a device / Add a printer / Print server properties). - Dual-Stack IPv4/IPv6 + Native Windows 11 DoH DNS Enforcer: Upgraded
Set-CustomDNSto configure both IPv4 and IPv6 resolvers and injectDohFlags = 1(QWord) directly intoDnscache\InterfaceSpecificParametersandDohWellKnownServersfor automatic kernel-level DNS-over-HTTPS encryption.
🔧 Module Z6: System Integrity & First-Aid (Z6_Integrity.ps1)
- Real Exit Code Latching (
Start-ExternalConsoleAsync): Upgraded external maintenance console invocation tocmd.exe /v:onwith delayed variable expansion (!WUX_ERR!), preventingpause >nulfrom masking command failures and formatting non-zero exit codes into both decimal and0x{0:X8}HRESULT hex notation. - Real-Time DISM Progress Streaming (
Get-WinSxSState): Replaced blockingStandardOutput.ReadToEnd()with a liveStreamReader.ReadLine()loop that intercepts carriage-return (\r) progress frames fromdism.exe /AnalyzeComponentStoreand streams completion percentages directly to$UltixSync.Progress. - Windows Update & Cryptographic First-Aid (
Repair-WindowsUpdateSubsystem): Added an asynchronous 5-stage repair worker that stopswuauserv,cryptSvc,bits,dosvc, andmsiserver, purges corrupted BITS transfer queues (qmgr*.dat), flushescatroot2andSoftwareDistribution\DataStore, re-registers 31 core cryptographic/WU COM DLLs viaregsvr32.exe /s, and restarts servicing daemons. - WMI / CIM Repository Diagnostics & Salvage (
Invoke-WMIAudit&Repair-WMIRepository): Added a live CIM health audit (winmgmt /verifyrepository+ active probes againstroot\cimv2androot\StandardCimv2) paired with a non-destructivewinmgmt /salvagerepositoryandwmiadap.exe /frepair routine. - Shell Icon & Thumbnail Cache First-Aid (
Clear-ShellIconCache): Added an asynchronous shell cache rebuilder that cleanly cyclesexplorer.exeto release memory-mapped file handles, purges corruptediconcache_*.dbandthumbcache_*.dbdatabases, and invokesie4uinit.exe -show.
⚡ Module Z7: Low-Level Hardware & Interrupt Tuning (Z7_Hardware.ps1)
- Native
kernel32.dllCPU & L3 Cache Topology Detection: UpgradedGet-CPUTopologyProfileto inspectSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EXstructures (RelationProcessorCore&RelationCache). Accurately isolates Intel Hybrid E-Core clusters (EfficiencyClass = 0) and asymmetric AMD Dual-CCD 3D V-Cache processors (pinning background apps to the non-V-Cache L3 CCD regardless of BIOS CCD enumeration order). - 3-Line Live Kernel DPC & Per-Core Distribution Monitor (
NtQuerySystemInformation): Added a real-time 1Hz telemetry panel on theHardwaretab (with tab-aware auto-pause and a?per-core log report) and insideShow-MsiModal. QueriesSystemInterruptInformation(0x17) and maps logical threads (LP#) to physical CPU core masks (C0..Cn) to display Boot Baseline, Live 1s Delta (DPC/s,Core 0 Share %,Hotspot LP#), and a full Per-Core distribution bar. - 6-Column Sortable MSI Grid, Smart DPC Bottleneck Classifier & Core 0 Offload: Upgraded
Show-MsiModalfrom a flatCheckedListBoxto a double-buffered, 6-column sortableListView(MSI,PCI Device Name,Driver,Priority,IRQ Mask,DPC Assessment). Automatically flags unoptimized GPU (nvlddmkm.sys/amdkmdag.sys) and Network NDIS drivers onCore 0with★ OFFLOAD TO C1, tags USB XHCI controllers asOptional C1, and shields multi-queue NVMe/SATA controllers (Keep Spread) from single-core pinning. Includes aSelect ★ GPU/NICquick-select button and shortened URL-safe Base64 backup subkeys (<100chars). - Dynamic 2Hz Timer Resolution Readout & Live
0.5msTest Pulse (Show-TimerModal): Added live 500ms (2Hz) polling ofNtQueryTimerResolutionwith color-coded status feedback alongside aTest 0.5ms Lockbutton (NtSetTimerResolution(5000, true)) that actively requests a0.5mskernel tick so users can verify sub-millisecond clock transitions in real time (auto-releasing when the modal closes). - Asynchronous & Symmetrically Reversible Network Optimizer: Moved NDIS/TCP modification and adapter re-initialization (
Restart-NetAdapter+ 2s settle delay) into an isolated background Runspace ($UltixSync), eliminated*EEEwildcard collisions via exact-eqfiltering, and implementedHKLM:\SOFTWARE\WinUltix\Network_Backupfor 100% symmetric rollback. - Accurate AC Hex Parser & Self-Healing CPPC Engine: Fixed
powercfg.exe /qhparsing to read theCurrent AC Power Setting Index($hexLines[-2]) instead ofMinimum Possible Setting($hexLines[0]), and added automatic self-healing if a previous backup key contained zeroed values. - Hardware Profile Snapshot Hooks & Dark Pre-Flight Macro: Added
Export-UltixHardwareSnapshotandImport-UltixHardwareSnapshotfor JSON profiles, and injected DWM dark title bar support, High-DPI GDI scaling, and liveENGAGED [ARMED]/RELEASED [STANDBY]status detection into the generatedPreFlight.ps1desktop shortcut.