Skip to content

Command‐line Interface

Jeffrey edited this page Feb 12, 2026 · 36 revisions

Introduction

Win11Debloat offers a powerful command-line interface which allows you to access all of it's features right from the terminal. Basic operations like applying the defaults can be achieved through an interactive CLI menu, but it's also possible to apply changes directly.

CLI Menu

The interactive CLI menu makes it easy to perform common actions such as:

  • Applying the default settings
  • Removing specific applications
  • Reapplying your last used settings
Win11Debloat CLI Menu

To launch the CLI menu, run the script with the -CLI parameter:

& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -CLI

Running Specific Commands

Alternatively, you can skip the menu and apply specific changes directly by running the script with their respective command-line parameters. Multiple parameters can be used together in a single command. For example, the following command disables Windows telemetry, removes bing web search from the Windows search and removes tips, tricks, and other suggested content while skipping all interactive prompts:

& ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -DisableTelemetry -DisableBing -DisableSuggestions -Silent

See the Parameters section below for more details on the supported parameters.

Parameters

Both the quick and advanced launch methods support command-line parameters. A full list of all supported parameters and what they do can be found below.

Parameter Description
-CreateRestorePoint Create a system restore point before making any changes. Unless a restore point was already created in the last 24 hours.
-NoRestartExplorer This prevents the script from restarting the Windows Explorer process after applying changes like it would normally do. This means that most of the changes made by Win11Debloat will not be applied until you manually restart or sign-out.
-CLI Opens the script CLI menu, instead of the new graphical interface.
-Silent Suppresses all interactive prompts, so the script will run without requiring any user input.
-Sysprep Run the script in Sysprep mode. All changes will be applied to the Windows default user profile and will only affect new user accounts. Click here for more details.
-LogPath <PATH> Change in what folder the script will save the log file. The log will be saved to the root folder of the script if no path is specified, or if the specified path doesn't exist.
-User <USERNAME> This allows you to specify what user the script should apply changes to, instead of the currently logged in user. This user must have logged on at least once, and cannot be logged in at the time the script is run. Click here for more details.
-AppRemovalTarget <USERNAME> This allows you specify for which user(s) apps are removed. You can also use AllUsers or CurrentUser to remove apps for all users or the current user respectively. If omitted apps will be removed for all users. If you specify a specific user, the user must have logged on at least once.
-RunDefaults Run the script with the default settings, including removing the default selection of apps.
-RunDefaultsLite Run the script with the default settings, but without removing any apps.
-RunSavedSettings Run the script with the settings from last time. These settings are saved to and read from the LastUsedSettings.json file in the root folder of the script.
-RemoveApps Remove the apps specified with the -Apps parameter. If the -Apps parameter is omitted the default selection of apps is removed.
-Apps <APPS> The selection of apps to remove, specified as a comma separated list. If the -Apps parameter is omitted the default selection of apps is removed. Example usage: -RemoveApps -Apps "Microsoft.OneDrive,Microsoft.Whiteboard"
-RemoveAppsCustom Remove all apps specified in the CustomAppsList file. No apps will be removed if this file does not exist. IMPORTANT: You can generate your custom apps list by running the script with the -RunAppsListGenerator parameter as explained here.
-RunAppsListGenerator Run the apps list generator to generate a custom list of apps to remove, the list is saved to the CustomAppsList file inside the root folder of the script. Running the script with the -RemoveAppsCustom parameter will remove the selected apps.
-RemoveHPApps Remove preinstalled HP apps. Click here for a full list.
-RemoveCommApps Remove the Mail, Calendar, and People apps.
-RemoveW11Outlook Remove the new Outlook for Windows app.
-RemoveGamingApps Remove the Xbox App and Xbox Gamebar.
-ForceRemoveEdge Forcefully remove Microsoft Edge, this option leaves Core, WebView and Update components installed for compatibility. NOT RECOMMENDED!
-DisableDVR Disable Xbox game/screen recording feature & stop gaming overlay popups.
-DisableGameBarIntegration Disable Xbox Game Bar integration & game/screen recording. This also disables ms-gamingoverlay/ms-gamebar popups if you uninstall the Xbox Game Bar.
-ClearStart Remove all pinned apps from start for the current user. (Windows 11 update 22H2 or later only)
-ClearStartAllUsers Remove all pinned apps from start for all existing and new users. (Windows 11 update 22H2 or later only)
-ReplaceStart <PATH> Replace the pinned apps from start for the current user with your template file. Click here for more details. (Windows 11 update 22H2 or later only)
-ReplaceStartAllUsers <PATH> Replace the pinned apps from start for all existing and new users with your template file. Click here for more details. (Windows 11 update 22H2 or later only)
-DisableStartRecommended Disable & hide the recommended section in the start menu. This will also change the start menu layout to More pins.
-DisableStartPhoneLink Disable the Phone Link mobile devices integration in the start menu. This will not uninstall or disable Phone Link itself.
-DisableTelemetry Disable telemetry, diagnostic data & targeted ads.
-DisableSuggestions Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer.
-DisableEdgeAds Disable ads and the MSN news feed in Microsoft Edge.
-DisableDesktopSpotlight Disable the Windows Spotlight desktop background option.
-DisableLockscreenTips Disable tips & tricks on the lockscreen.
-DisableSettings365Ads Disable Microsoft 365 ads in Settings Home.
-DisableSettingsHome Hide the Settings Home page completely. Settings will open to the System tab instead.
-DisableBing Disable & remove Bing web search, Bing AI & Cortana in Windows search.
-DisableCopilot Disable and remove Microsoft Copilot. (Windows 11 only)
-DisableRecall Disable Windows Recall, an AI snapshot history tool for Copilot+ PC's. (Windows 11 only)
-DisableClickToDo Disable Click to Do, an AI text & image analysis tool for Copilot+ PC's. (Windows 11 only)
-DisableEdgeAI Disable AI features in Edge. (Windows 11 only)
-DisablePaintAI Disable AI features in Paint. (Windows 11 only)
-DisableNotepadAI Disable AI features in Notepad. (Windows 11 only)
-DisableDragTray Disable the Drag Tray for sharing & moving files. (Windows 11 only)
-RevertContextMenu Restore the old Windows 10 style context menu. (Windows 11 only)
-DisableMouseAcceleration Turn off Enhance Pointer Precision, also known as mouse acceleration. Requires reboot to apply.
-DisableStickyKeys Disable the Sticky Keys keyboard shortcut.
-DisableFastStartup Disables Fast Start-up to ensure a full shutdown.
-DisableBitlockerAutoEncryption Prevents BitLocker from automatically encrypting your drive. This works best when run in Sysprep mode, before any users are created.
-DisableDeliveryOptimization Disables Delivery Optimization, this prevent your PC from sharing or getting Windows Update files from other PC's on your network or on the internet. More information here.
-DisableUpdateASAP This disables the "Get the latest updates as soon as they are available" setting. It prevents the system from receiving the latest non-security updates right away.
-PreventUpdateAutoReboot This prevents Windows from automatically restarting after receiving an update, as long as any user is still signed in.
-DisableModernStandbyNetworking
Disable network connectivity during Modern Standby to reduce battery drain during sleep. (Windows 11 only)
-ShowHiddenFolders Show hidden files, folders and drives.
-ShowKnownFileExt Show file extensions for known file types.
-HideDupliDrive Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under This PC remains.
-EnableDarkMode Enable dark mode for system and apps.
-DisableTransparency Disable transparency effects.
-DisableAnimations Disable animations and visual effects.
-TaskbarAlignLeft Align taskbar icons to the left. (Windows 11 only)
-CombineTaskbarAlways Set the taskbar on the main monitor to always combine buttons and hide labels. (Windows 11 only)
-CombineTaskbarWhenFull Set the taskbar on the main monitor to only combine buttons and hide labels when the taskbar is full. (Windows 11 only)
-CombineTaskbarNever Set the taskbar on the main monitor to never combine buttons and always show labels. (Windows 11 only)
-CombineMMTaskbarAlways Set the taskbar on secondary monitors to always combine buttons and hide labels. (Windows 11 only)
-CombineMMTaskbarWhenFull Set the taskbar on secondary monitors to only combine buttons and hide labels when the taskbar is full. (Windows 11 only)
-CombineMMTaskbarNever Set the taskbar on secondary monitors to never combine buttons and always show labels. (Windows 11 only)
-MMTaskbarModeAll Set the taskbar to show app icons on all taskbars. (Windows 11 only)
-MMTaskbarModeMainActive Set the taskbar to show app icons on main taskbar and on taskbar where the windows is open. (Windows 11 only)
-MMTaskbarModeActive Set the taskbar to only show app icons on taskbar where the window is open. (Windows 11 only)
-HideSearchTb Hide search icon from the taskbar. (Windows 11 only)
-ShowSearchIconTb Show search icon on the taskbar. (Windows 11 only)
-ShowSearchLabelTb Show search icon with label on the taskbar. (Windows 11 only)
-ShowSearchBoxTb Show search box on the taskbar. (Windows 11 only)
-HideTaskview Hide the taskview button from the taskbar. (Windows 11 only)
-HideChat Hide the chat (meet now) icon from the taskbar.
-DisableWidgets Disable the widget service, which disables widgets on the taskbar and lockscreen. This will also remove the StartExperiencesApp, which is responsible for My feed in the Widgets panel.
-EnableEndTask Enable the End Task option in the taskbar right click menu.
-EnableLastActiveClick Enable the 'Last Active Click' behavior in the taskbar app area. This allows you to repeatedly click on an application's icon in the taskbar to switch focus between the open windows of that application.
-HideHome Hide the home section from the File Explorer navigation pane and add a toggle in the File Explorer folder options. (Windows 11 only)
-HideGallery Hide the gallery section from the File Explorer navigation pane and add a toggle in the File Explorer folder options. (Windows 11 only)
-ExplorerToHome Change File Explorer to open to Home.
-ExplorerToThisPC Change File Explorer to open to This PC.
-ExplorerToDownloads Change File Explorer to open to Downloads.
-ExplorerToOneDrive Change File Explorer to open to OneDrive.
-AddFoldersToThisPC Adds all common folders (Documents, Downloads, Music, Pictures, Videos, Desktop) back to 'This PC' page in File Explorer. (Windows 11 only)
-DisableWindowSnapping Disables window snapping entirely. (Windows 11 only)
-DisableSnapAssist Disables app suggestions when snapping windows. (Windows 11 only)
-DisableSnapLayouts Hides the snap layout flyout at top of screen and when hovering over maximize button. (Windows 11 only)
-HideTabsInAltTab Hides tabs from apps when snapping or pressing Alt+Tab. (Windows 11 only)
-Show3TabsInAltTab Shows up to 3 tabs from apps when snapping or pressing Alt+Tab. (Windows 11 only)
-Show5TabsInAltTab Shows up to 5 tabs from apps when snapping or pressing Alt+Tab. (Windows 11 only)
-Show20TabsInAltTab Shows up to 20 tabs from apps when snapping or pressing Alt+Tab. (Windows 11 only)
-DisableBraveBloat Disable bloat in Brave browser, such as Brave AI, Crypto/Wallet, Brave News, Brave Rewards, Brave Talk and Brave VPN.
-HideOnedrive Hide the OneDrive folder from the File Explorer navigation pane. (Windows 10 only)
-Hide3dObjects Hide the 3D objects folder under This pc in File Explorer. (Windows 10 only)
-HideMusic Hide the music folder under This pc in File Explorer. (Windows 10 only)
-HideIncludeInLibrary Hide the Include in library option in the context menu. (Windows 10 only)
-HideGiveAccessTo Hide the Give access to option in the context menu. (Windows 10 only)
-HideShare Hide the Share option in the context menu. (Windows 10 only)

Clone this wiki locally