Reference · Command line
Win11Debloat on the command line
Everything the Win11Debloat wizard does can also be done with one PowerShell command, without clicking anything. Pick what you want below and copy the command. Under the builder is every one of the 117 parameters in release 2026.08.24, checked against its source code, including three that the official docs leave out.
On this page 5 sections
Short answer
What is the Win11Debloat command?
- Open the wizard:
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) - Default mode, no questions: add
-RunDefaults -Silentto the end. - Just some tweaks: add their switches instead, for example
-DisableCopilot -DisableBing -Silent. - See first, change nothing: add
-WhatIf.
How the command works
The command has two parts. The first downloads and starts Win11Debloat. The rest are switches that tell it what to do.
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -DisableCopilot -DisableBing -Silentirm "https://debloat.raphi.re/"downloads the small launcher script from the project's GitHub release. What it fetches, step by step.[scriptblock]::Create(…)turns that text into a script, and&runs it. Writing it this way, rather thanirm … | iex, is what lets you pass switches to it.- The launcher passes every switch on to
Win11Debloat.ps1, which it starts in a new window with administrator rights. All 117 parameters work through the one-liner.
With a downloaded copy, run .\Win11Debloat.ps1 with the same switches, in PowerShell as administrator, from the extracted folder.
From Command Prompt (cmd)
Win11Debloat is a PowerShell script, but you can start it from Command Prompt or a .bat file by handing the same one-liner to PowerShell. Put switches after it, inside the double quotes:
powershell -NoProfile -ExecutionPolicy Bypass -Command "& ([scriptblock]::Create((irm 'https://debloat.raphi.re/'))) -RunDefaults -Silent"We ran this form from cmd.exe on Windows Server 2025 with -ShowKnownFileExt -Silent: the launcher downloaded the release, Win11Debloat made its registry backup, applied the tweak, restarted Explorer and logged every step, with no window to click through.
Some common jobs, run this way:
- Remove bloatware with Default mode's app list only:
-RemoveApps -Silent - Uninstall Edge:
-RemoveApps -Apps "Microsoft.Edge" -Silent(read removing Edge first) - Remove Widgets:
-DisableWidgets -Silent - Classic context menu:
-RevertContextMenu -Silent - Copilot and Recall off:
-DisableCopilot -DisableRecall -Silent
Every tweak is also a plain registry change. To make one by hand, open Registry Editor (Win + R, regedit) and set the values shown on its tweak page, or double-click the tweak's .reg file from the release's Regfiles folder.
Rules worth knowing
- Any switch skips the wizard. Win11Debloat only opens the wizard when you give it no switches, or only switches like
-Silent. - Switches add up.
-RunDefaults -DisableTelemetry -TaskbarAlignLeftapplies Default mode plus the extra tweak. Listing a default tweak again does no harm. - Plain switches apply straight away. Only Default mode, saved settings and config files list the changes first and wait: Press enter to execute the script or press CTRL+C to quit... Without
-Silent, it also waits for a key press at the end. -User,-Sysprepand-AppRemovalTargetalways run in text mode. They open the text menu if you give them nothing else to do.- Switches are not checked against your Windows build. Default mode, saved settings, config files and the wizard skip tweaks meant for other builds. A switch you type yourself is applied anyway in 2026.08.24, even if it was made for another Windows version. The next release adds the check (#832). Until then, leave out switches whose Needs column does not match your Windows.
- It refuses to run as SYSTEM without
-Useror-Sysprep, which matters when you deploy it with Intune or another management tool: Win11Debloat is running as the SYSTEM account. Use the '-User' or '-Sysprep' parameter to target a specific user.
All parameters
Checked against Win11Debloat.ps1 and the scripts it loads in release 2026.08.24. The official wiki also describes newer, unreleased options. Only the ones below work with the current release.
What to run
-RunDefaults- Applies Default mode: the 16 default tweaks and the 84 default apps. Without
-Silentit lists the changes and asks before applying them. -RunDefaultsLite- Default mode without removing any apps. Only the tweaks.
-RunSavedSettings- Repeats your last run, from
Config\LastUsedSettings.json. With the one-liner that file is in%TEMP%\Win11Debloat\Config. If it is missing: Unable to find LastUsedSettings.json file, no changes were made. -Configpath- Applies a config file you exported from the wizard (☰ → Export config).
-CLI- Opens the text menu instead of the wizard: (1) Default mode, (2) App removal mode, (3) your last used settings, if any.
Who it changes
-Userusername- Applies the changes to another account instead of yours. The account must have signed in at least once, so its profile exists. Runs in text mode.
-Sysprep- Applies the changes to the default user profile, so only accounts created afterwards get them. Windows 11 only. Runs in text mode.
-AppRemovalTargetAllUsers | CurrentUser | username- Whose apps are removed. Without it, apps are removed for all users and from the Windows image. Runs in text mode.
How it runs
-Silent- No questions at all. Skips the confirmation, the extra “Are you sure?” for the Store and Windows Terminal, the restore-point failure dialog (it continues) and the final key press.
-CreateRestorePoint- Makes a system restore point first. Turns on System Protection for drive C: if it is off. Skipped when a restore point from the last 24 hours exists.
-SkipRegistryBackup- Does not save the registry backup it normally makes before applying tweaks. Not in the official docs.
-SkipExplorerRestart- Does not restart Explorer at the end. Taskbar, Start and File Explorer changes then show after you sign out or restart.
-LogPathfolder- Where to save the log. By default it goes to the
Logsfolder next to the script. -WhatIf- Dry run: prints every app, registry file and scheduled task it would change, and changes nothing. It also writes no log file, because the transcript obeys
-WhatIftoo; copy the window's text if you need a record. Not in the official docs. Our test of it. -Verbose- Shows PowerShell's progress bars and extra detail. Waits for a key press before starting.
-Dev- One-liner only: downloads the newest unreleased code from the
masterbranch instead of the latest release. For testing, not for everyday use.
Apps
-RemoveApps- Removes apps. Without
-Appsit removes the 84 default apps. -Apps"id1,id2"- Which apps
-RemoveAppsremoves, as a comma-separated list of package names. Unknown names are skipped with a message. Build one with the app checker. -RemoveGamingApps- Removes the Xbox app and both Xbox Game Bar packages (
Microsoft.GamingApp,Microsoft.XboxGameOverlay,Microsoft.XboxGamingOverlay). -RemoveHPApps- Removes 20 preinstalled HP apps (packages starting with
AD2F1837.). -ForceRemoveEdge- Runs Edge's own uninstaller after preparing the registry. Leaves Edge WebView and the updater in place. The project marks this as not recommended.
Start menu layout
-ClearStart- Unpins everything from Start for your account. Windows 11 22H2 or later.
-ClearStartAllUsers- Unpins everything from Start for all existing and new accounts. Windows 11 22H2 or later.
-ReplaceStartpath- Replaces your Start pins with a layout file you provide. Windows 11 22H2 or later.
-ReplaceStartAllUserspath- Same, for all existing and new accounts.
Accepted but unused
-DisableSearchHistory- Still accepted so old commands do not fail, but does nothing in 2026.08.24.
-DisableSearchHighlights- Still accepted so old commands do not fail, but does nothing in 2026.08.24.
Tweaks
One switch per tweak. Each applies only that tweak.
Privacy & Suggested Content8
-DisableTelemetry | Disable telemetry, tracking & targeted ads default policy |
|---|---|
-DisableSuggestions | Disable tips, tricks & suggested content throughout Windows default |
-DisableNotifications | Disable Windows Notifications (From apps and other senders) |
-DisableLocationServices | Disable Windows location services & app location access policy |
-DisableFindMyDevice | Disable Find My Device location tracking policy |
-DisableLockscreenTips | Disable tips & tricks on the lock screen default |
-DisableEdgeAds | Disable ads, suggestions and newsfeed in Edge default policy |
-DisableSettings365Ads | Hide Microsoft 365 Copilot ads in Settings Home policy Windows 11 21H2+ |
System8
-DisableDragTray | Disable 'Drag Tray' for sharing & moving files default Windows 11 25H2+ |
|---|---|
-RevertContextMenu | Use classic Windows 10 context menu style Windows 11 21H2+ |
-DisableMouseAcceleration | Disable Enhance Pointer Precision (mouse acceleration) |
-DisableStickyKeys | Disable Sticky Keys keyboard shortcut (5x shift) Windows 11 24H2+ |
-DisableStorageSense | Disable Storage Sense automatic disk cleanup Windows 11 21H2+ |
-DisableFastStartup | Disable fast start-up |
-DisableBitlockerAutoEncryption | Disable BitLocker automatic device encryption Windows 11 21H2+ |
-DisableModernStandbyNetworking | Disable Modern Standby network connectivity default policy Windows 11 21H2+ |
Start Menu & Search8
-DisableStartRecommended | Hide recommended section in the start menu policy Windows 11 22H2+ |
|---|---|
-DisableStartAllApps | Hide 'All Apps' section in the start menu policy Windows 11 25H2+ |
-DisableStartPhoneLink | Disable Phone Link integration in the start menu Windows 11 22H2+ |
-DisableBing | Disable Bing web search & Copilot integration in search default policy |
-DisableStoreSearchSuggestions | Disable Microsoft Store app suggestions in search default Windows 11 22H2+ |
-StartAllAppsCategory | Show All Apps in Category view (Default) policy Windows 11 25H2+ |
-StartAllAppsGrid | Show All Apps in Grid view policy Windows 11 25H2+ |
-StartAllAppsList | Show All Apps in List view policy Windows 11 25H2+ |
AI7
-DisableCopilot | Disable Microsoft Copilot default policy Windows 11 22H2+ |
|---|---|
-DisableRecall | Disable Windows Recall default policy Windows 11 22H2+ |
-DisableClickToDo | Disable Click To Do, AI text & image analysis default policy Windows 11 22H2+ |
-DisableAISvcAutoStart | Prevent AI service from starting automatically default Windows 11 22H2+ |
-DisableEdgeAI | Disable AI features in Microsoft Edge policy Windows 11 22H2+ |
-DisablePaintAI | Disable AI features in Paint policy Windows 11 22H2+ |
-DisableNotepadAI | Disable AI features in Notepad policy Windows 11 22H2+ |
Windows Update4
-DisableUpdateASAP | Prevent getting updates as soon as they're available |
|---|---|
-PreventUpdateAutoReboot | Prevent automatic restarts after updates while signed in policy |
-DisableDeliveryOptimization | Disable sharing downloaded updates with other PCs |
-DisableDeviceAutoAppDownload | Prevent Windows from auto-installing device companion apps policy |
Taskbar19
-TaskbarAlignLeft | Align taskbar to the left Windows 11 21H2+ |
|---|---|
-HideSearchTb | Hide search icon from the taskbar Windows 11 21H2+ |
-ShowSearchIconTb | Show search icon on the taskbar Windows 11 21H2+ |
-ShowSearchLabelTb | Show search icon with label on the taskbar Windows 11 21H2+ |
-ShowSearchBoxTb | Show search box on the taskbar Windows 11 21H2+ |
-HideTaskview | Hide 'Task view' button on the taskbar Windows 11 21H2+ |
-DisableWidgets | Disable widgets on the taskbar & lock screen default |
-HideChat | Hide Chat (meet now) icon on the taskbar default policy up to Windows 11 22H2 |
-EnableEndTask | Show 'End Task' option in taskbar context menu Windows 11 23H2+ |
-EnableLastActiveClick | Enable 'Last Active Click' behavior for taskbar apps Windows 11 21H2+ |
-CombineTaskbarAlways | Always combine taskbar buttons and hide labels for the main display Windows 11 21H2+ |
-CombineMMTaskbarAlways | Always combine taskbar buttons and hide labels for secondary displays Windows 11 21H2+ |
-CombineTaskbarWhenFull | Combine taskbar buttons and hide labels when taskbar is full for the main display Windows 11 21H2+ |
-CombineMMTaskbarWhenFull | Combine taskbar buttons and hide labels when taskbar is full for secondary displays Windows 11 21H2+ |
-CombineTaskbarNever | Never combine taskbar buttons and show labels for the main display Windows 11 21H2+ |
-CombineMMTaskbarNever | Never combine taskbar buttons and show labels for secondary displays Windows 11 21H2+ |
-MMTaskbarModeAll | Show app icons on all taskbars Windows 11 21H2+ |
-MMTaskbarModeMainActive | Show app icons on main taskbar and on taskbar where the windows is open Windows 11 21H2+ |
-MMTaskbarModeActive | Show app icons only on taskbar where the window is open Windows 11 21H2+ |
Appearance6
-EnableDesktopSpotlight | Enable Windows spotlight desktop background and shortcut policy |
|---|---|
-DisableDesktopSpotlight | Disable Windows spotlight desktop background policy |
-HideDesktopSpotlightIcon | Hide the 'Learn about this picture' desktop shortcut policy |
-EnableDarkMode | Enable dark theme for system and apps |
-DisableTransparency | Disable transparency effects |
-DisableAnimations | Disable animations and visual effects |
File Explorer20
-ExplorerToHome | Change the default location that File Explorer opens to 'Home' |
|---|---|
-ExplorerToThisPC | Change the default location that File Explorer opens to 'This PC' |
-ExplorerToDownloads | Change the default location that File Explorer opens to 'Downloads' |
-ExplorerToOneDrive | Change the default location that File Explorer opens to 'OneDrive' |
-ShowKnownFileExt | Show file extensions for known file types default |
-ShowHiddenFolders | Show hidden files, folders and drives |
-HideDupliDrive | Hide duplicate removable drive entries |
-HideHome | Hide 'Home' from navigation pane Windows 11 21H2+ |
-HideGallery | Hide 'Gallery' from navigation pane Windows 11 21H2+ |
-HideOnedrive | Hide 'OneDrive' from navigation pane |
-Hide3dObjects | Hide '3D objects' folder under 'This PC' default up to Windows 10 |
-HideMusic | Hide 'Music' folder under 'This PC' up to Windows 10 |
-AddFoldersToThisPC | Add common folders back to 'This PC' page Windows 11 21H2+ |
-HideIncludeInLibrary | Hide 'Include in library' option in the context menu up to Windows 10 |
-HideGiveAccessTo | Hide 'Give access to' option in the context menu up to Windows 10 |
-HideShare | Hide 'Share' option in the context menu up to Windows 10 |
-ShowDriveLettersFirst | Show drive letters before drive label |
-ShowDriveLettersLast | Show drive letters after drive label |
-ShowNetworkDriveLettersFirst | Show network drive letters before drive label |
-HideDriveLetters | Hide all drive letters |
Gaming2
-DisableDVR | Disable Xbox game/screen recording policy |
|---|---|
-DisableGameBarIntegration | Disable Game Bar integration |
Multi-tasking7
-DisableWindowSnapping | Disable window snapping |
|---|---|
-DisableSnapAssist | Disable showing app suggestions when snapping windows Windows 11 21H2+ |
-DisableSnapLayouts | Hide snap layout flyout at top of screen and on maximize button Windows 11 21H2+ |
-HideTabsInAltTab | Hide tabs from apps when snapping or pressing Alt+Tab Windows 11 21H2+ |
-Show3TabsInAltTab | Show 3 tabs from apps when snapping or pressing Alt+Tab Windows 11 21H2+ |
-Show5TabsInAltTab | Show 5 tabs from apps when snapping or pressing Alt+Tab Windows 11 21H2+ |
-Show20TabsInAltTab | Show 20 tabs from apps when snapping or pressing Alt+Tab Windows 11 21H2+ |
Optional Windows Features2
-EnableWindowsSandbox | Enable Windows Sandbox Windows 11 build 22483+ |
|---|---|
-EnableWindowsSubsystemForLinux | Enable Windows Subsystem for Linux Windows 11 21H2+ |
Other2
-DisableSettingsHome | Hide Settings 'Home' page policy Windows 11 21H2+ |
|---|---|
-DisableBraveBloat | Disable bloat in Brave browser (AI, Crypto, etc.) policy |
Ready-made commands
Default mode with no questions
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -RunDefaults -SilentDefault tweaks, keep every app
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -RunDefaultsLite -SilentTurn off every AI feature
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -DisableCopilot -DisableRecall -DisableClickToDo -DisableAISvcAutoStart -DisableEdgeAI -DisablePaintAI -DisableNotepadAI -SilentSee what Default mode would do, without doing it
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -RunDefaults -Silent -WhatIfSet up the default profile before creating accounts
& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -Sysprep -RunDefaults -SilentQuestions
How do I run Win11Debloat silently?
Add -Silent and at least one thing to do, such as -RunDefaults. With -Silent it asks nothing, continues if the restore point fails, and closes when it is done.
Can I use these parameters with Run.bat?
No. Run.bat only starts the wizard. To pass parameters, use the one-liner or run Win11Debloat.ps1 from PowerShell.
Does the command line do anything the wizard cannot?
A few things: -WhatIf for a dry run, -SkipRegistryBackup, -LogPath, and -Sysprep without opening anything. The wizard has one thing the command line lacks: undoing a tweak by unticking it.
Why does my command open the text menu?
Because it includes -User, -Sysprep or -AppRemovalTarget but nothing else to do. Add -RunDefaults or the tweaks you want, and -Silent.
What happens if I mistype a switch?
PowerShell stops before anything runs, with an error that it cannot find a parameter by that name. App names in -Apps are different: an unknown name is skipped with Removal of app '…' is not supported and will be skipped, and the rest still run.
Keep going
Something wrong or out of date? Email hello@win11debloat.dev and we will fix it.