Skip to content

BiosSystem/WinSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

WinSwift Title

Version PowerShell License Stars

Notice: WinSwift is an enterprise-grade, rebranded fork of the open-source project Raphire/Win11Debloat. All original credits and core architecture concepts belong to the Raphire team. We have implemented our own unified build system and UI adjustments to suit strict organizational needs.

WinSwift is a lightweight, easy-to-use PowerShell script that allows you to quickly declutter and customize your Windows experienceโ€”no installation required! Remove pre-installed apps, disable telemetry, strip out intrusive interface elements, and reclaim your operating system.

๐Ÿ—๏ธ Architecture & Execution Flow

WinSwift uses a robust PowerShell execution engine with strict error handling and UAC elevation to apply modifications safely.

graph TD
    subgraph Execution["Initialization"]
        A[User Runs Command] --> B{Admin Rights?}
        B -- No --> C[Request UAC Elevation]
        C --> D
        B -- Yes --> D[Load WinSwift Engine]
    end

    subgraph CoreEngine["WinSwift Core Engine"]
        D --> E[Parse Parameters]
        E --> F[Backup Registry State]
        F --> G[Load Modular Tweaks]
    end

    subgraph Operations["Targeted Operations"]
        G --> H[Telemetry & Privacy]
        G --> I[Appx Package Removal]
        G --> J[UI/UX Modifications]
        G --> K[AI/Copilot Purge]
    end

    H --> L[Done]
    I --> L
    J --> L
    K --> L
Loading

โœจ What's New in v2.4.0

  • autounattend.xml Generator - Offline OOBE bypass generator for new installations.
  • Software Installer - Automated Winget deployment of essential apps.
  • Preset Profiles - Shareable JSON configurations for 1-click setups.
  • Dry-Run Mode - Preview all changes safely before applying.
  • v2.2.0: Competitive Gaming Mode, Settings App Ad Killer, Widgets Deep Disable, Auto-Update Check
  • v2.1.0: Gaming Mode, Performance Tweaks, Security Hardening, Extended AI Purge, Kill Windows Ads

๐Ÿš€ Usage

Warning

Great care went into making sure this script does not unintentionally break any OS functionality, but use at your own risk! If you run into any issues, please report them on our Issue Tracker.

Quick Method (Recommended)

Run the script directly from our raw GitHub repository using PowerShell.

  1. Open PowerShell or Terminal.
  2. Copy and paste the command below into PowerShell:
$f = New-TemporaryFile | Rename-Item -NewName { $_.Name + '.ps1' } -PassThru
irm https://raw.githubusercontent.com/BiosSystem/WinSwift/master/WinSwift.ps1 -OutFile $f
& $f
Remove-Item $f -Force

(Alternatively, you can download the script and run it manually)

  1. Wait for the script to automatically download and launch WinSwift.
  2. Carefully read through and follow the on-screen instructions.

This method supports command-line parameters to customize the behaviour of the script. Please refer to our Wiki for advanced parameters.

Traditional Method

Click here for manual download instructions
  1. Download the latest version and extract the .ZIP file to your desired location.
  2. Navigate to the WinSwift folder.
  3. Double click the Run.bat file to start the script.
  4. Accept the Windows UAC prompt to run the script as administrator.
  5. Carefully read through and follow the on-screen instructions.

Advanced Method (PowerShell Direct)

Click here for advanced PowerShell execution
  1. Download the latest version and extract the .ZIP file.
  2. Open PowerShell as an administrator.
  3. Temporarily enable PowerShell execution by entering the following command:
Set-ExecutionPolicy Unrestricted -Scope Process -Force
  1. Navigate to the directory where the files were extracted: cd C:\WinSwift
  2. Run the script:
.\WinSwift.ps1

๐Ÿ› ๏ธ Feature Overview

Tip

All changes made by WinSwift can easily be reverted, and almost all removed apps can be reinstalled through the Microsoft Store. Visit our Wiki for reversion instructions.

App Removal

  • Remove a wide variety of preinstalled bloatware apps (TikTok, Candy Crush, Solitaire).

Privacy & Telemetry

  • Disable OS telemetry, diagnostic data, activity history, app-launch tracking & targeted ads.
  • Disable tips, tricks, suggestions & ads across Windows, the lock screen, and Microsoft Edge.
  • Disable Windows location services, app location access, and Find My Device location tracking.

The AI Purge

  • Disable & remove Microsoft Copilot, Windows Recall, and Click to Do.
  • Prevent the AI service (WSAIFabricSvc) from starting automatically.
  • Disable baked-in AI Features in Edge, Paint, and Notepad.

UI & System Tweaks

  • Restore the classic Windows 10 style context menu.
  • Disable transparency, animations, and visual effects for max performance.
  • Disable BitLocker automatic device encryption.
  • Disable network connectivity during Modern Standby to reduce battery drain.

Taskbar & Explorer Customization

  • Enable the 'End Task' option in the taskbar right-click menu to quickly force-close unresponsive apps.
  • Disable Bing web search & Copilot integration in the Start Menu.
  • Hide the Home, Gallery, or OneDrive section from the File Explorer navigation pane.
  • Show hidden files, folders, drives, and file extensions by default.

Advanced Multi-tasking

  • Enable Windows Sandbox, a lightweight desktop environment for safely running applications in isolation.
  • Enable Windows Subsystem for Linux (WSL).

๐ŸŽฎ Gaming Mode (-EnableGamingMode)

  • Switch to High Performance power plan automatically.
  • Disable Nagle's Algorithm for lower network latency in multiplayer games.
  • Disable Mouse Acceleration for true raw input.
  • Disable Sticky Keys (no more accidental Shift interruptions).
  • Disable Xbox Game Bar and DVR capture overhead.
  • Enable Hardware Accelerated GPU Scheduling (HAGS).
  • Disable automatic maintenance tasks during gaming hours.
  • Remove Windows startup delay.

โšก Performance Tweaks (-EnablePerformanceTweaks)

  • Disable Superfetch (SysMain) - unnecessary background RAM prefetching on SSD systems.
  • Disable Windows Search indexing - reduces disk I/O.
  • Disable Hibernate and free the hiberfil.sys file (often 8-32 GB).
  • Disable Windows Error Reporting dialog popups.
  • Disable Print Spooler on non-printer systems.
  • Disable Aero Shake (shake-to-minimize).
  • Set NumLock ON at every startup.
  • Show seconds in the system clock.

๐Ÿ›ก๏ธ Security Hardening (-EnableSecurityHardening)

  • Disable SMBv1 (EternalBlue/WannaCry ransomware vector).
  • Disable Remote Desktop (RDP) inbound access.
  • Disable AutoRun on all drive types (USB malware prevention).
  • Disable legacy TLS 1.0 and 1.1 protocols.
  • Block common attack ports: 135, 139, 445 inbound.
  • Disable Windows Script Host (.vbs/.js malware protection).

๐Ÿค– Extended AI Purge (24H2/25H2) (-EnableExtendedAIPurge)

  • Fully disable Windows Recall snapshots and AI indexing.
  • Deep-disable Phone Link via registry.
  • Disable Windows Ink Workspace AI suggestions.
  • Kill Sluggishness Telemetry scheduled tasks (CloudExperienceHost).
  • Suppress OneDrive silent sign-in from Microsoft account.
  • Disable cross-device Cloud Clipboard sync.

๐Ÿšซ Kill Windows Ads (-DisableWindowsAds)

  • Disable Start menu promoted and suggested apps.
  • Disable Lock screen Spotlight ads.
  • Remove File Explorer promotional banners.
  • Disable Advertising ID for app targeting.
  • Disable tailored experiences and device-usage personalization.

๐ŸŽฏ Competitive Gaming Mode (-EnableCompetitiveGaming)

For esports and competitive players who need every millisecond.

  • Enable hidden Ultimate Performance power plan (unlocks more CPU/GPU headroom than High Performance).
  • Force high-precision system timer resolution via GlobalTimerResolutionRequests (0.5ms vs Windows default 15.6ms).
  • BCD boot tweaks: useplatformtick=yes, disabledynamictick=yes for consistent kernel timing.
  • MMCSS tuning: NetworkThrottlingIndex=0xFFFFFFFF (removes artificial network latency cap), SystemResponsiveness=0.
  • MMCSS Games task: GPU Priority=8, Priority=6, Scheduling Category=High, SFIO Priority=High.
  • Disable CPU core parking (prevents latency spikes from parked cores waking mid-game).
  • Add -DisableMemoryIntegrity to also disable VBS/HVCI for a 5-10% FPS boost (opt-in, shows security warning).

๐Ÿ“ข Kill Settings App Ads (-DisableSettingsAds)

For Windows 11 25H2 - targets new ad vectors Microsoft injected into the Settings app itself.

  • Suppress all Settings app suggestions and personalized tips (17 ContentDeliveryManager keys).
  • Disable post-OOBE "Get more out of Windows" nag screen.
  • Block silent Microsoft app installs (SilentInstalledAppsEnabled=0).
  • Disable Windows Backup nudge introduced in 25H2.
  • Kill Microsoft Teams reinstall suggestions.
  • Master kill switch: ContentDeliveryAllowed=0.

๐Ÿ“Œ Widgets Deep Disable (-DisableWidgetsDeep)

The 25H2 update stopped Widgets opening on hover - but data collection continued in the background.

  • Remove MicrosoftWindows.Client.WebExperience and runtime packages entirely.
  • Set Group Policy lock (AllowNewsAndInterests=0) that survives Windows Update package reinstalls.
  • Kill all related background processes before removal.
  • Disable Widgets button in taskbar.

๐Ÿ“ฆ Software Installer (-InstallSoftware)

Fully automated installation of essential utilities using Winget.

  • Curated List: 7-Zip, Brave Browser, VLC, Notepad++, PowerToys, Git, Visual Studio Code.
  • Provide a custom list via -SoftwareList "7zip.7zip", "VideoLAN.VLC".
  • Silently accepts all EULAs and package agreements.

โš™๏ธ Community Preset Profiles (-Preset <path.json>)

Create and share JSON configurations to quickly deploy standard setups.

  • Example Usage: .\WinSwift.ps1 -Preset .\Config\Presets\gaming-rig.json
  • Supports all WinSwift switches mapped in the Switches JSON array.

๐Ÿ›ก๏ธ OOBE Bypass XML Generator (-GenerateUnattend)

Instantly generate an autounattend.xml file for a fresh offline Windows 11 install.

  • Bypasses the mandatory Microsoft Account requirement (adds BypassNRO registry tweak).
  • Suppresses online account screens, EULA, and Wi-Fi setup prompts.
  • Outputs directly to C:\autounattend.xml (or custom -UnattendOutPath).

๐Ÿ”Ž Dry-Run Mode (-DryRun)

Safely simulate all registry modifications and service changes without applying them.

  • Leverages PowerShell's native $WhatIfPreference.
  • Provides a detailed CLI preview of exactly what actions WinSwift would take.

๐Ÿค Contributing

We welcome contributions of all kinds! Please see our Contributing Guidelines for detailed instructions on how to get started.

We welcome contributions of all kinds! Please see our Contributing Guidelines for detailed instructions on how to get started.

๐Ÿ“„ License

WinSwift is licensed under the MIT license. See the LICENSE file for more information.

About

Lightweight Windows debloat and customization toolkit with a CLI interface, audit mode support, and exportable settings profiles.

Resources

License

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors