Phase 1 — Initial setup (WinSux.ps1)
Phase 1 is the only script you run manually. It prepares the system, downloads everything needed for the subsequent phases, and schedules them to run automatically.Internet checkBefore doing anything, the script pings Files land in
DDU (Display Driver Uninstaller)DDU is extracted from Google ChromeChrome is installed silently:Post-install configuration:Safe boot and safe network boot entries are also added for the new NVMe storage class GUID so the driver is available during Phase 2.Chain to Phase 2 and Phase 3The machine restarts after a 5-second delay.
8.8.8.8. If there is no internet connection it exits immediately with an error.Download temp filesAll supporting files are fetched from the GitHub API:%SystemRoot%\Temp (typically C:\Windows\Temp).7-Zip7-Zip is installed silently with /S and configured via registry:CascadedMenu = 0— disables the cascaded submenu in the context menuContextMenu = 259— sets which context menu entries are shown
| Version | Switches |
|---|---|
| 2005 x86 / x64 | /Q /C:"msiexec /i vcredist.msi /qn /norestart" |
| 2008 x86 / x64 | /q |
| 2010 x86 / x64 | /quiet /norestart |
| 2012 x86 / x64 | /quiet /norestart |
| 2013 x86 / x64 | /quiet /norestart |
| 2015–2022 x86 / x64 | /quiet /norestart |
ddu.exe using 7-Zip. A Settings.xml config file is written that:- Disables update checks (
CheckUpdates = False) - Disables restore point creation (
CreateRestorePoint = False) - Enables removal of all GPU types: NVIDIA, AMD, Intel (including NPU, OneAPI, control panels, PhysX, GFE, broadcast)
- Removes audio bus drivers, Vulkan, and monitor drivers
- Sets
PreventWinUpdate = Trueto stop Windows from auto-reinstalling drivers after DDU runs
- uBlock Origin Lite is force-installed via enterprise policy (
ExtensionInstallForcelist) - Hardware acceleration is disabled via policy (
HardwareAccelerationModeEnabled = 0) — avoids GPU conflicts during driver work - Background mode is disabled (
BackgroundModeEnabled = 0) - High Efficiency Mode is enabled (
HighEfficiencyModeEnabled = 1) - The Chrome logon Active Setup entry is removed
- All Chrome services and scheduled tasks are deleted
DXSETUP.exe /silent.New NVMe driver feature flagsThree feature management override registry values are enabled to activate the modern NVMe driver:Phase 2 — Safe Mode (stepone.ps1)
Phase 2 runs automatically on the Safe Mode boot via the Winlogon This is required because Tamper Protection, VBS, and memory integrity are owned by TrustedInstaller and cannot be modified by even a SYSTEM-level administrator process.Windows Defender and security settings (as TrustedInstaller)Each setting is applied twice — once via UACUAC is disabled by setting This ensures the next reboot goes to a normal Windows session, picking up the DDU handles the reboot itself. When Windows next starts in normal mode,
Userinit hook set in Phase 1.Restore Winlogon immediatelyThe very first action is restoring Winlogon to its default value to prevent any loop if the script is interrupted:Run-Trusted functionBoth Phase 2 and Phase 3 define a Run-Trusted helper that executes commands as the TrustedInstaller principal by temporarily replacing the service binary path:Run-Trusted (as TrustedInstaller) and once directly as admin — to ensure the values are written regardless of which protection layer intercepts them.Settings applied:- Real-time monitoring — disabled (
DisableRealtimeMonitoring) - Cloud-delivered protection — disabled (
SpyNetReporting = 0,SubmitSamplesConsent = 0) - Tamper Protection — disabled (
TamperProtection = 4) - Controlled Folder Access — disabled
- Firewall notifications — disabled across Domain, Public, and Standard profiles
- Smart App Control — disabled (
VerifiedAndReputableTrustModeEnabled = 0,SmartLockerMode = 0) - SmartScreen (Explorer) — disabled
- SmartScreen (Edge) — disabled
- Phishing protection — disabled (
WTDS\Componentsservice disabled) - PUA protection — disabled
- Exploit protection kernel mitigations — set to permissive binary value
- Memory integrity (HVCI) — disabled (
HypervisorEnforcedCodeIntegrity\Enabled = 0) - Virtualization-Based Security (VBS) — disabled by removing BCD values (
allowedinmemorysettings,isolatedcontext,hypervisorlaunchtype) and deletingEnableVirtualizationBasedSecurity - LSA protection — disabled (
RunAsPPL = 0) - Vulnerable driver blocklist — disabled (
VulnerableDriverBlocklistEnable = 0)
VBS is explicitly noted in the source as something FaceIt Anti-Cheat forces back on even after uninstall. The bcdedit deletions are specifically intended to counter this.
EnableLUA = 0 in the System policies key. This is applied as a regular admin call, not via TrustedInstaller, because UAC policy is not Tamper Protection-protected.Remove Safe Mode boot entryRunOnce entry that runs Phase 3.DDUDDU is launched with arguments to strip all GPU, audio, and realtek drivers, then restart:RunOnce fires Phase 3.Phase 3 — Final configuration (steptwo.ps1)
Phase 3 runs automatically on the first normal boot after Phase 2, triggered by the The Memory compression is disabled to reduce CPU overhead from the Memory Manager agent. On systems with sufficient RAM this avoids unnecessary compression cycles.BitLockerAll BitLocker-protected volumes are decrypted:Scheduled tasksDisabled via
Network adapter power savingsFor every adapter under Sign-in requirement after wakeDisabled for both AC and DC power via Classic right-click context menuSeveral additional context menu entries are removed: “Customize this folder”, “Pin to Quick Access”, “Add to favorites”, “Troubleshoot compatibility”, “Open in Terminal”, “Scan with Defender”, “Give access to”, “Include in library”, “Share”, “Restore previous versions”, “Send to”.UWP app removalAll AppX packages are removed for all users except those required for system function:Power planThe Ultimate Performance power plan (The compiled binary is installed as an auto-start Windows service. The service requests a 0.5 ms timer resolution on startup, giving all processes on the system access to a higher-resolution system clock tick.Global timer resolution requests are also enabled:Disk cleanup
RunOnce entry set in Phase 1. This is the longest phase.Windows Store settingsThe Store settings hive (Microsoft.WindowsStore settings.dat) is loaded and patched via a temporary registry import:- Video autoplay — disabled
- App installation notifications — disabled
- Personalized experiences — disabled
- App auto-updates — disabled (
AutoDownload = 2)
camsvc (Capability Access Manager) service is stopped and its database file (CapabilityConsentStorage.db) is deleted via Run-Trusted. This is done twice — before and after the main registry import — to ensure app permission grants are fully cleared.CDPUserSvc (Windows Backup)The Connected Device Platform user service is disabled at startup (Start = 4) to suppress the Windows Backup prompt.Main registry importreg.reg file applies the bulk of registry-level tweaks covering privacy, UI, performance, and telemetry settings.Memory compressionschtasks /Change /Disable:ExploitGuard MDM policy RefreshWindows Defender Cache MaintenanceWindows Defender CleanupWindows Defender Scheduled ScanWindows Defender VerificationScheduledDefrag
| Component ID | Protocol |
|---|---|
ms_lldp | Link Layer Discovery Protocol |
ms_lltdio | Link Layer Topology Discovery Mapper |
ms_implat | Network Monitor Driver |
ms_rspndr | Link Layer Topology Discovery Responder |
ms_tcpip6 | IPv6 |
ms_server | File and Printer Sharing |
ms_msclient | Client for Microsoft Networks |
ms_pacer | QoS Packet Scheduler |
HKLM\System\ControlSet001\Control\Class\{4d36e972...}, the following are disabled:PnPCapabilities = 24(disables power management and wake)- Advanced EEE, EEE, GigaLite, Green Ethernet, power saving mode
- Wake on LAN, Wake on Magic Packet, Wake on Pattern, WakeOnLink
PauseUpdatesExpiryTime, PauseFeatureUpdatesEndTime, and PauseQualityUpdatesEndTime to the Windows Update UX settings key.Driver updates are additionally blocked via policy:powercfg:*CBS*— breaks File Explorer*Microsoft.AV1VideoExtension*,*AVCEncoder*,*HEIF*,*HEVC*,*MPEG2*,*RawImage*,*VP9*,*WebMedia*,*Webp*— media codec extensions*Microsoft.Paint*,*Microsoft.Windows.Photos*— kept*Microsoft.SecHealthUI*— breaks Windows Server Defender*Microsoft.Windows.ShellExperienceHost*— breaks taskbar*Microsoft.Windows.StartMenuExperienceHost*— breaks Start menu*Microsoft.WindowsNotepad*,*Microsoft.WindowsStore*— kept*NVIDIACorp.NVIDIAControlPanel*— kept if present*windows.immersivecontrolpanel*— breaks Settings
*Microsoft.Windows.Ethernet*— network drivers*Microsoft.Windows.MSPaint*(Windows 10) — Paint*Microsoft.Windows.Notepad*/*Notepad.System*— Notepad*Microsoft.Windows.Wifi*— Wi-Fi drivers*NetFX3*— .NET Framework 3.5*VBSCRIPT*— required for MSI installers*WMIC*— required by monitoring programs*Windows.Client.ShellComponents*(Windows 10) — required by Snipping Tool
- Microsoft GameInput — uninstalled via MSI GUID
- OneDrive — stopped and uninstalled via
OneDriveSetup.exe -uninstall(multiple paths for Win10/Win11 and Office 365 variants); scheduled tasks removed - Remote Desktop Connection — uninstalled via
mstsc /Uninstall - Old Snipping Tool (Windows 10) — uninstalled via
SnippingTool.exe /Uninstall - Update for x64-based Windows Systems — uninstalled via MSI GUID
- Microsoft Update Health Tools — uninstalled via MSI GUID;
uhssvcservice andPLUGSchedulertask removed
Run, RunOnce, and RunNotification entries under both HKCU and HKLM are deleted and recreated empty. Startup folders are cleared. Non-Microsoft scheduled tasks are removed via Run-Trusted against the task cache registry tree.GPU driver installationAn interactive menu prompts for GPU vendor:- NVIDIA — opens
nvidia.com/en-us/driversin Chrome, prompts to select the downloaded.exe, extracts it with 7-Zip, strips bloat folders (Display.Nview,FrameViewSDK,HDAudio,NvBackend,NvContainer,NvCpl,NvDLISR,NvTelemetry,PhysX,ShadowPlay, and others), then installs with-s -noreboot -noeula -clean. NVIDIA Control Panel is installed via winget. Post-install: DisableDynamicPstate, HDCP disabled, PhysX set to GPU, developer settings enabled, NvInspector profile imported. - AMD — opens AMD’s driver download page, extracts the installer, modifies XML and JSON config files to disable bundled software (
AMDAUEPInstaller,AMDLinkDriverUpdate,AMDUpdater, etc.), installs with-INSTALL -VIEW:2. Post-install: removes AMD Crash Defender service and driver, AMD audio coprocessor, AMD streaming audio driver, AMD Install Manager; imports Adrenalin settings (vsync off, texture quality performance, tessellation off, system tray disabled). - Intel — opens Intel’s driver search page, extracts the installer, runs with
--noExtras --terminateProcesses -s, installs Intel Graphics Software control panel separately. Post-install: removes startup entries, GFX firmware update tool service, HDCP service, CTA child driver, GSC firmware interface driver; imports settings (vsync off, low latency off). - Skip — proceeds without installing any driver.
ms-settings:display- NVIDIA Control Panel (if present)
mmsys.cpl(Sound)
Get-PnpDevice -Class Display:e9a42b02-d5df-448d-aa00-03f14749eb61) is duplicated with GUID 99999999-9999-9999-9999-999999999999 and set as active. All other power plans are then deleted.The duplicated plan is then customized:- Sleep, hibernate, and fast startup — all disabled
- Power throttling — disabled (
PowerThrottlingOff = 1) - Minimum and maximum processor state — 100%
- CPU core parking min/max — 100% (all cores unparked)
- PCI Express link state power management — off
- USB selective suspend — disabled
- USB 3 link power management — off
- Display turn-off — 10 minutes (OLED burn-in protection)
- Wireless adapter — maximum performance
- All battery thresholds — 0%
HKLM\SYSTEM\ControlSet001\Enum\ACPIHKLM\SYSTEM\ControlSet001\Enum\HIDHKLM\SYSTEM\ControlSet001\Enum\PCIHKLM\SYSTEM\ControlSet001\Enum\USB
WaitWakeEnabled) is also disabled for all ACPI, HID, PCI, and USB devices.Write cache buffer flushingFor all NVMe and SCSI devices, CacheIsPowerProtected = 1 is set in the disk device parameters. This tells Windows the storage device has its own power-protected cache, disabling the OS-level write cache buffer flush on shutdown — which reduces I/O overhead at the cost of relying on the drive’s own capacitor-backed cache.SetTimerResolutionServiceA C# source file (settimerresolutionservice.cs) downloaded in Phase 1 is compiled using the .NET Framework 4 C# compiler:GlobalTimerResolutionRequests causes the system to honor the highest timer resolution requested by any process globally, rather than applying it only to the requesting process. This benefits games and audio applications that do not request high resolution themselves.%USERPROFILE%\AppData\Local\Temp— cleared%SystemRoot%\Temp— clearedcleanmgr.exe /autoclean /d C:— runs Windows Disk Cleanup automatically- Removes
C:\inetpub,C:\PerfLogs,C:\XboxGames,C:\Windows.old,C:\DumpStack.log
"backup" is created via Checkpoint-Computer with type MODIFY_SETTINGS. The SystemRestorePointCreationFrequency registry value is temporarily set to 0 to bypass the 24-hour cooldown, then reverted.RestartThe machine restarts after a 5-second delay. Setup is complete.