├── .github ├── FUNDING.yml └── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ └── feature_request.yml ├── .gitignore ├── Appslist.txt ├── Assets ├── Menus │ ├── DefaultSettings │ └── Info ├── Start │ ├── What is this file.txt │ └── start2.bin └── menu.png ├── Get.ps1 ├── LICENSE ├── README.md ├── Regfiles ├── Align_Taskbar_Left.reg ├── Disable_AI_Recall.reg ├── Disable_Animations.reg ├── Disable_Bing_Cortana_In_Search.reg ├── Disable_Chat_Taskbar.reg ├── Disable_Copilot.reg ├── Disable_DVR.reg ├── Disable_Desktop_Spotlight.reg ├── Disable_Enhance_Pointer_Precision.reg ├── Disable_Fast_Startup.reg ├── Disable_Give_access_to_context_menu.reg ├── Disable_Include_in_library_from_context_menu.reg ├── Disable_Lockscreen_Tips.reg ├── Disable_Phone_Link_In_Start.reg ├── Disable_Settings_365_Ads.reg ├── Disable_Settings_Home.reg ├── Disable_Share_from_context_menu.reg ├── Disable_Show_More_Options_Context_Menu.reg ├── Disable_Start_Recommended.reg ├── Disable_Sticky_Keys_Shortcut.reg ├── Disable_Telemetry.reg ├── Disable_Transparency.reg ├── Disable_Widgets_Taskbar.reg ├── Disable_Windows_Suggestions.reg ├── Enable_Dark_Mode.reg ├── Enable_End_Task.reg ├── Hide_3D_Objects_Folder.reg ├── Hide_Gallery_from_Explorer.reg ├── Hide_Home_from_Explorer.reg ├── Hide_Music_Folder.reg ├── Hide_Onedrive_Folder.reg ├── Hide_Search_Taskbar.reg ├── Hide_Taskview_Taskbar.reg ├── Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg ├── Launch_File_Explorer_To_Downloads.reg ├── Launch_File_Explorer_To_Home.reg ├── Launch_File_Explorer_To_OneDrive.reg ├── Launch_File_Explorer_To_This_PC.reg ├── Show_Extensions_For_Known_File_Types.reg ├── Show_Hidden_Folders.reg ├── Show_Search_Box.reg ├── Show_Search_Icon.reg ├── Show_Search_Icon_And_Label.reg ├── Sysprep │ ├── Align_Taskbar_Left.reg │ ├── Disable_AI_Recall.reg │ ├── Disable_Animations.reg │ ├── Disable_Bing_Cortana_In_Search.reg │ ├── Disable_Chat_Taskbar.reg │ ├── Disable_Copilot.reg │ ├── Disable_DVR.reg │ ├── Disable_Desktop_Spotlight.reg │ ├── Disable_Enhance_Pointer_Precision.reg │ ├── Disable_Fast_Startup.reg │ ├── Disable_Give_access_to_context_menu.reg │ ├── Disable_Include_in_library_from_context_menu.reg │ ├── Disable_Lockscreen_Tips.reg │ ├── Disable_Phone_Link_In_Start.reg │ ├── Disable_Settings_365_Ads.reg │ ├── Disable_Settings_Home.reg │ ├── Disable_Share_from_context_menu.reg │ ├── Disable_Show_More_Options_Context_Menu.reg │ ├── Disable_Start_Recommended.reg │ ├── Disable_Sticky_Keys_Shortcut.reg │ ├── Disable_Telemetry.reg │ ├── Disable_Transparency.reg │ ├── Disable_Widgets_Taskbar.reg │ ├── Disable_Windows_Suggestions.reg │ ├── Enable_Dark_Mode.reg │ ├── Enable_End_Task.reg │ ├── Hide_3D_Objects_Folder.reg │ ├── Hide_Gallery_from_Explorer.reg │ ├── Hide_Home_from_Explorer.reg │ ├── Hide_Music_Folder.reg │ ├── Hide_Onedrive_Folder.reg │ ├── Hide_Search_Taskbar.reg │ ├── Hide_Taskview_Taskbar.reg │ ├── Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg │ ├── Launch_File_Explorer_To_Downloads.reg │ ├── Launch_File_Explorer_To_Home.reg │ ├── Launch_File_Explorer_To_OneDrive.reg │ ├── Launch_File_Explorer_To_This_PC.reg │ ├── Show_Extensions_For_Known_File_Types.reg │ ├── Show_Hidden_Folders.reg │ ├── Show_Search_Box.reg │ ├── Show_Search_Icon.reg │ └── Show_Search_Icon_And_Label.reg └── Undo │ ├── Align_Taskbar_Center.reg │ ├── Disable_End_Task.reg │ ├── Enable_AI_Recall.reg │ ├── Enable_Activity_History.reg │ ├── Enable_Animations.reg │ ├── Enable_Bing_Cortana_In_Search.reg │ ├── Enable_Chat_Taskbar.reg │ ├── Enable_Copilot.reg │ ├── Enable_DVR.reg │ ├── Enable_Desktop_Spotlight.reg │ ├── Enable_Enhance_Pointer_Precision.reg │ ├── Enable_Fast_Startup.reg │ ├── Enable_Give_access_to_context_menu.reg │ ├── Enable_Include_in_library_to_context_menu.reg │ ├── Enable_Light_Mode.reg │ ├── Enable_Lockscreen_Tips.reg │ ├── Enable_Phone_Link_In_Start.reg │ ├── Enable_Settings_365_Ads.reg │ ├── Enable_Settings_Home.reg │ ├── Enable_Share_to_context_menu.reg │ ├── Enable_Start_Recommended.reg │ ├── Enable_Sticky_Keys_Shortcut.reg │ ├── Enable_Telemetry.reg │ ├── Enable_Transparency.reg │ ├── Enable_W11_Style_Context_Menu.reg │ ├── Enable_Widgets_Taskbar.reg │ ├── Enable_Windows_Suggestions.reg │ ├── Hide_Extensions_For_Known_File_Types.reg │ ├── Hide_Hidden_Folders.reg │ ├── Show_3D_Objects_Folder.reg │ ├── Show_Gallery_in_Explorer.reg │ ├── Show_Home_from_Explorer.reg │ ├── Show_Music_Folder.reg │ ├── Show_Onedrive_folder.reg │ ├── Show_Taskview_Taskbar.reg │ └── Show_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg ├── Run.bat └── Win11Debloat.ps1 /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: raphire 2 | ko_fi: raphire -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: "🐞 Bug report" 2 | description: "Report an issue you encountered" 3 | labels: ["bug"] 4 | 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: | 9 | # 🐞 **Bug report** 10 | Thanks for taking the time to fill out this bug report! Please provide as much information as possible in your report to help us understand and resolve the issue. 11 | 12 | - type: checkboxes 13 | id: checklist 14 | attributes: 15 | label: Checklist 16 | description: Please confirm the following before posting your issue. 17 | options: 18 | - label: I have searched for existing issues/discussions and didn't find any similar ones. 19 | required: true 20 | - label: I haven't used any other scripts, tools or programs that might have caused this issue. 21 | required: false 22 | 23 | - type: input 24 | id: windows_version 25 | attributes: 26 | label: Windows version 27 | description: What version of Windows are you using? 28 | placeholder: e.g. Windows 11 24H2 (26100.4202) 29 | validations: 30 | required: true 31 | 32 | - type: input 33 | id: script_setting 34 | attributes: 35 | label: Script mode/options 36 | description: What mode/options did you use with the script? 37 | placeholder: e.g. "Default mode", "Custom mode with options X, Y, Z" 38 | validations: 39 | required: true 40 | 41 | - type: textarea 42 | id: issue_description 43 | attributes: 44 | label: Describe the issue 45 | description: Provide a clear and detailed description of the issue. 46 | placeholder: e.g. "When I ran the script I expected [...], but instead [...]. This caused [...]." 47 | validations: 48 | required: true 49 | 50 | - type: textarea 51 | id: steps_to_reproduce 52 | attributes: 53 | label: Steps to reproduce 54 | description: How can the behaviour be reproduced? Please provide detailed steps. 55 | placeholder: | 56 | 1. Open '...' 57 | 2. Select '...' 58 | 3. Wait for '...' 59 | 4. Etc. 60 | validations: 61 | required: true 62 | 63 | - type: textarea 64 | id: error_logs 65 | attributes: 66 | label: Error output 67 | description: "Include any relevant logs or error messages. Logs can be found in `%temp%/Win11Debloat` or the root folder of the script. Please keep in mind that logs may contain personal information such as usernames and the name of your PC, so review them before submitting." 68 | placeholder: Include any relevant logs or error messages. 69 | validations: 70 | required: false 71 | 72 | - type: textarea 73 | id: additional_context 74 | attributes: 75 | label: Additional context 76 | description: Add any other context about the problem here. 77 | placeholder: e.g. Screenshots, links to related discussions, etc. 78 | validations: 79 | required: false 80 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Open a discussion 4 | url: https://github.com/Raphire/Win11Debloat/discussions 5 | about: Discuss anything that is not a bug report or feature request -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: "💡 Feature request" 2 | description: "Suggest a new feature or improvement" 3 | labels: ["enhancement"] 4 | 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: | 9 | # 💡 **Feature request** 10 | Thanks for taking the time to suggest a feature for Win11Debloat! Please include as much detail as possible to help us understand and evaluate your suggestion. 11 | 12 | - type: checkboxes 13 | id: checklist 14 | attributes: 15 | label: Checklist 16 | description: Please confirm the following before posting your issue. 17 | options: 18 | - label: I have searched for existing issues/discussions and didn't find any similar ones. 19 | required: true 20 | 21 | - type: textarea 22 | id: description 23 | attributes: 24 | label: Describe the feature or improvement 25 | description: Provide a clear and concise description of your suggested feature or improvement. Explain why you think this feature is needed and how it would benefit users. 26 | placeholder: Describe the feature or improvement. 27 | validations: 28 | required: true 29 | 30 | - type: textarea 31 | id: examples 32 | attributes: 33 | label: Examples 34 | description: Provide examples of how the feature could work or be implemented. 35 | placeholder: e.g. Code snippets, mockups, or links to other implementations of similar features. 36 | validations: 37 | required: false 38 | 39 | - type: textarea 40 | id: additional_context 41 | attributes: 42 | label: Additional context 43 | description: Add any other context or screenshots about the feature request here. 44 | placeholder: e.g. Screenshots, links to related discussions, etc. 45 | validations: 46 | required: false 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | LastSettings 2 | SavedSettings 3 | CustomAppsList 4 | Win11Debloat.log -------------------------------------------------------------------------------- /Appslist.txt: -------------------------------------------------------------------------------- 1 | # -------------------------------------------------------------------------------------------------------------- # 2 | # The apps below this line WILL be uninstalled by default. Add a # character in front of any app you want to # 3 | # KEEP installed by default. # 4 | # -------------------------------------------------------------------------------------------------------------- # 5 | Clipchamp.Clipchamp # Video editor from Microsoft 6 | Microsoft.3DBuilder # Basic 3D modeling software 7 | Microsoft.549981C3F5F10 # Cortana app (Voice assistant) 8 | Microsoft.BingFinance # Finance news and tracking via Bing (Discontinued) 9 | Microsoft.BingFoodAndDrink # Recipes and food news via Bing (Discontinued) 10 | Microsoft.BingHealthAndFitness # Health and fitness tracking/news via Bing (Discontinued) 11 | Microsoft.BingNews # News aggregator via Bing (Replaced by Microsoft News/Start) 12 | Microsoft.BingSports # Sports news and scores via Bing (Discontinued) 13 | Microsoft.BingTranslator # Translation service via Bing 14 | Microsoft.BingTravel # Travel planning and news via Bing (Discontinued) 15 | Microsoft.BingWeather # Weather forecast via Bing 16 | Microsoft.Copilot # AI assistant integrated into Windows 17 | Microsoft.Getstarted # Tips and introductory guide for Windows (Cannot be uninstalled in Windows 11) 18 | Microsoft.Messaging # Messaging app, often integrates with Skype (Largely deprecated) 19 | Microsoft.Microsoft3DViewer # Viewer for 3D models 20 | Microsoft.MicrosoftJournal # Digital note-taking app optimized for pen input 21 | Microsoft.MicrosoftOfficeHub # Hub to access Microsoft Office apps and documents (Precursor to Microsoft 365 app) 22 | Microsoft.MicrosoftPowerBIForWindows # Business analytics service client 23 | Microsoft.MicrosoftSolitaireCollection # Collection of solitaire card games 24 | Microsoft.MicrosoftStickyNotes # Digital sticky notes app 25 | Microsoft.MixedReality.Portal # Portal for Windows Mixed Reality headsets 26 | Microsoft.NetworkSpeedTest # Internet connection speed test utility 27 | Microsoft.News # News aggregator (Replaced Bing News, now part of Microsoft Start) 28 | Microsoft.Office.OneNote # Digital note-taking app (Universal Windows Platform version) 29 | Microsoft.Office.Sway # Presentation and storytelling app 30 | Microsoft.OneConnect # Mobile Operator management app (Replaced by Mobile Plans) 31 | Microsoft.Print3D # 3D printing preparation software 32 | Microsoft.SkypeApp # Skype communication app (Universal Windows Platform version) 33 | Microsoft.Todos # To-do list and task management app 34 | Microsoft.WindowsAlarms # Alarms & Clock app 35 | Microsoft.WindowsFeedbackHub # App for providing feedback to Microsoft on Windows 36 | Microsoft.WindowsMaps # Mapping and navigation app 37 | Microsoft.WindowsSoundRecorder # Basic audio recording app 38 | Microsoft.XboxApp # Old Xbox Console Companion App, no longer supported 39 | Microsoft.ZuneVideo # Movies & TV app for renting/buying/playing video content (Rebranded as "Films & TV") 40 | MicrosoftCorporationII.MicrosoftFamily # Family Safety App for managing family accounts and settings 41 | MicrosoftCorporationII.QuickAssist # Remote assistance tool 42 | MicrosoftTeams # Old MS Teams personal (MS Store version) 43 | MSTeams # New MS Teams app (Work/School or Personal) 44 | 45 | ACGMediaPlayer # Media player app 46 | ActiproSoftwareLLC # Potentially UI controls or software components, often bundled by OEMs 47 | AdobeSystemsIncorporated.AdobePhotoshopExpress # Basic photo editing app from Adobe 48 | Amazon.com.Amazon # Amazon shopping app 49 | AmazonVideo.PrimeVideo # Amazon Prime Video streaming service app 50 | Asphalt8Airborne # Racing game 51 | AutodeskSketchBook # Digital drawing and sketching app 52 | CaesarsSlotsFreeCasino # Casino slot machine game 53 | COOKINGFEVER # Restaurant simulation game 54 | CyberLinkMediaSuiteEssentials # Multimedia software suite (often preinstalled by OEMs) 55 | DisneyMagicKingdoms # Disney theme park building game 56 | Disney # General Disney content app (may vary by region/OEM, often Disney+) 57 | DrawboardPDF # PDF viewing and annotation app, often focused on pen input 58 | Duolingo-LearnLanguagesforFree # Language learning app 59 | EclipseManager # Often related to specific OEM software or utilities (e.g., for managing screen settings) 60 | Facebook # Facebook social media app 61 | FarmVille2CountryEscape # Farming simulation game 62 | fitbit # Fitbit activity tracker companion app 63 | Flipboard # News and social network aggregator styled as a magazine 64 | HiddenCity # Hidden object puzzle adventure game 65 | HULULLC.HULUPLUS # Hulu streaming service app 66 | iHeartRadio # Internet radio streaming app 67 | Instagram # Instagram social media app 68 | king.com.BubbleWitch3Saga # Puzzle game from King 69 | king.com.CandyCrushSaga # Puzzle game from King 70 | king.com.CandyCrushSodaSaga # Puzzle game from King 71 | LinkedInforWindows # LinkedIn professional networking app 72 | MarchofEmpires # Strategy game 73 | Netflix # Netflix streaming service app 74 | NYTCrossword # New York Times crossword puzzle app 75 | OneCalendar # Calendar aggregation app 76 | PandoraMediaInc # Pandora music streaming app 77 | PhototasticCollage # Photo collage creation app 78 | PicsArt-PhotoStudio # Photo editing and creative app 79 | Plex # Media server and player app 80 | PolarrPhotoEditorAcademicEdition # Photo editing app (Academic Edition) 81 | Royal Revolt # Tower defense / strategy game 82 | Shazam # Music identification app 83 | Sidia.LiveWallpaper # Live wallpaper app 84 | SlingTV # Live TV streaming service app 85 | Spotify # Spotify music streaming app 86 | TikTok # TikTok short-form video app 87 | TuneInRadio # Internet radio streaming app 88 | Twitter # Twitter (now X) social media app 89 | Viber # Messaging and calling app 90 | WinZipUniversal # File compression and extraction utility (Universal Windows Platform version) 91 | Wunderlist # To-do list app (Acquired by Microsoft, functionality moved to Microsoft To Do) 92 | XING # Professional networking platform popular in German-speaking countries 93 | 94 | 95 | 96 | 97 | # ------------------------------------------------------------------------------------------------------------- # 98 | # The apps below this line will NOT be uninstalled by default. Remove the # character in front of any app you # 99 | # want to UNINSTALL by default. # 100 | # ------------------------------------------------------------------------------------------------------------- # 101 | #Microsoft.BingSearch # Web Search from Microsoft Bing (Integrates into Windows Search) 102 | #Microsoft.Copilot # New Microsoft Copilot app (AI assistant) 103 | #Microsoft.Edge # Edge browser (Can only be uninstalled in European Economic Area) 104 | #Microsoft.GamingApp # Modern Xbox Gaming App, required for installing some PC games 105 | #Microsoft.GetHelp # Required for some Windows 11 Troubleshooters and support interactions 106 | #Microsoft.MSPaint # Paint 3D (Modern paint application with 3D features) 107 | #Microsoft.OneDrive # OneDrive consumer cloud storage client 108 | #Microsoft.OutlookForWindows # New mail app: Outlook for Windows 109 | #Microsoft.Paint # Classic Paint (Traditional 2D paint application) 110 | #Microsoft.People # Required for & included with Mail & Calendar (Contacts management) 111 | #Microsoft.PowerAutomateDesktop # Desktop automation tool (RPA) 112 | #Microsoft.RemoteDesktop # Remote Desktop client app 113 | #Microsoft.ScreenSketch # Snipping Tool (Screenshot and annotation tool) 114 | #Microsoft.StartExperiencesApp # This app powers Windows Widgets My Feed 115 | #Microsoft.Whiteboard # Digital collaborative whiteboard app 116 | #Microsoft.Windows.DevHome # Developer dashboard and tool configuration utility 117 | #Microsoft.Windows.Photos # Default photo viewing and basic editing app 118 | #Microsoft.WindowsCalculator # Calculator app 119 | #Microsoft.WindowsCamera # Camera app for using built-in or connected cameras 120 | #Microsoft.windowscommunicationsapps # Mail & Calendar app suite 121 | #Microsoft.WindowsNotepad # Notepad text editor app 122 | #Microsoft.WindowsStore # Microsoft Store, WARNING: This app cannot be reinstalled easily if removed! 123 | #Microsoft.WindowsTerminal # New default terminal app in windows 11 (Command Prompt, PowerShell, WSL) 124 | #Microsoft.Xbox.TCUI # UI framework, seems to be required for MS store, photos and certain games 125 | #Microsoft.XboxGameOverlay # Game overlay, required/useful for some games (Part of Xbox Game Bar) 126 | #Microsoft.XboxGamingOverlay # Game overlay, required/useful for some games (Part of Xbox Game Bar) 127 | #Microsoft.XboxIdentityProvider # Xbox sign-in framework, required for some games and Xbox services 128 | #Microsoft.XboxSpeechToTextOverlay # Might be required for some games, WARNING: This app cannot be reinstalled easily! (Accessibility feature) 129 | #Microsoft.YourPhone # Phone link (Connects Android/iOS phone to PC) 130 | #Microsoft.ZuneMusic # Modern Media Player (Replaced Groove Music, plays local audio/video) 131 | #MicrosoftWindows.CrossDevice # Phone integration within File Explorer, Camera and more (Part of Phone Link features) 132 | #AD2F1837.HPAIExperienceCenter # HP OEM software, AI-enhanced features and support 133 | #AD2F1837.HPConnectedMusic # HP OEM software for music (Potentially discontinued) 134 | #AD2F1837.HPConnectedPhotopoweredbySnapfish # HP OEM software for photos, integrated with Snapfish (Potentially discontinued) 135 | #AD2F1837.HPDesktopSupportUtilities # HP OEM software providing desktop support tools 136 | #AD2F1837.HPEasyClean # HP OEM software for system cleaning or optimization 137 | #AD2F1837.HPFileViewer # HP OEM software for viewing specific file types 138 | #AD2F1837.HPJumpStarts # HP OEM software for tutorials, app discovery, or quick access to HP features 139 | #AD2F1837.HPPCHardwareDiagnosticsWindows # HP OEM software for PC hardware diagnostics 140 | #AD2F1837.HPPowerManager # HP OEM software for managing power settings and battery 141 | #AD2F1837.HPPrinterControl # HP OEM software for managing HP printers 142 | #AD2F1837.HPPrivacySettings # HP OEM software for managing privacy settings 143 | #AD2F1837.HPQuickDrop # HP OEM software for quick file transfer between devices 144 | #AD2F1837.HPQuickTouch # HP OEM software, possibly for touch-specific shortcuts or controls 145 | #AD2F1837.HPRegistration # HP OEM software for product registration 146 | #AD2F1837.HPSupportAssistant # HP OEM software for support, updates, and troubleshooting 147 | #AD2F1837.HPSureShieldAI # HP OEM security software, likely AI-based threat protection 148 | #AD2F1837.HPSystemInformation # HP OEM software for displaying system information 149 | #AD2F1837.HPWelcome # HP OEM software providing a welcome experience or initial setup help 150 | #AD2F1837.HPWorkWell # HP OEM software focused on well-being, possibly with break reminders or ergonomic tips 151 | #AD2F1837.myHP # HP OEM central hub app for device info, support, and services 152 | -------------------------------------------------------------------------------- /Assets/Menus/DefaultSettings: -------------------------------------------------------------------------------- 1 | Win11Debloat will make the following changes: 2 | - Remove the default selection of apps, the list can be found in the 'Appslist.txt' file. 3 | - Disable telemetry, diagnostic data, app-launch tracking & targeted ads. 4 | - Disable tips, tricks, suggestions and ads in start, settings, notifications and more. 5 | - Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper) 6 | - Disable & remove Bing web search, Bing AI and Cortana from Windows search. 7 | - Disable & remove Microsoft Copilot. (W11 only) 8 | - Disable Fast Start-up to ensure a full shutdown. 9 | - Show file extensions for known file types. 10 | - Hide the 3D objects folder in Windows Explorer. (W10 only) 11 | - Disable the widget service & hide the icon from the taskbar. 12 | - Hide the Chat (meet now) icon from the taskbar. 13 | 14 | 15 | -------------------------------------------------------------------------------- /Assets/Menus/Info: -------------------------------------------------------------------------------- 1 | Win11Debloat is a lightweight and easy to use PowerShell script that allows you to quickly 2 | declutter and improve your Windows experience. It can remove pre-installed bloatware apps, 3 | disable telemetry, remove intrusive interface elements and much more. 4 | 5 | ------------------------------------------------------------------------------------------- 6 | All Features 7 | ------------------------------------------------------------------------------------------- 8 | App Removal 9 | - Remove a wide variety of bloatware apps. 10 | - Remove or replace all pinned apps from start for the current user, or for all existing & new users. (W11 only) 11 | 12 | Telemetry, Tracking & Suggested Content 13 | - Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. 14 | - Disable tips, tricks, suggestions & ads across Windows. 15 | - Disable the 'Windows Spotlight' desktop background option. 16 | 17 | Bing, Copilot & More 18 | - Disable & remove Bing web search, Bing AI and Cortana from Windows search. 19 | - Disable & remove Microsoft Copilot. (W11 only) 20 | - Disable Windows Recall snapshots. (W11 only) 21 | 22 | Personalisation 23 | - Enable dark mode for system and apps. 24 | - Disable transparency, animations and visual effects. 25 | - Turn off Enhance Pointer Precision, also known as mouse acceleration. 26 | - Disable the Sticky Keys keyboard shortcut. (W11 only) 27 | - Restore the old Windows 10 style context menu. (W11 only) 28 | - Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only) 29 | 30 | File Explorer 31 | - Change the default location that File Explorer opens to. 32 | - Show hidden files, folders & drives. 33 | - Show file extensions for known file types. 34 | - Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only) 35 | - Hide the 3D objects, music or OneDrive folder from the File Explorer sidepanel. (W10 only) 36 | - Hide duplicate removable drive entries from the File Explorer sidepanel. 37 | 38 | Taskbar 39 | - Align taskbar icons to the left. (W11 only) 40 | - Hide or change the search icon/box on the taskbar. (W11 only) 41 | - Hide the taskview button from the taskbar. (W11 only) 42 | - Disable the widgets service & hide icon from the taskbar. 43 | - Hide the chat (meet now) icon from the taskbar. 44 | - Enable the 'End Task' option in the taskbar right click menu. (W11 only) 45 | 46 | Start 47 | - Disable & hide the recommended section in the start menu. (W11 only) 48 | - Disable the Phone Link mobile devices integration in the start menu. (W11 only) 49 | 50 | Other 51 | - Disable Xbox game/screen recording, this also stops gaming overlay popups. 52 | - Disable Fast Start-up to ensure a full shutdown. 53 | - Option to apply changes to a different user, instead of the currently logged in user. 54 | - Sysprep mode to apply changes to the Windows Default user profile. 55 | 56 | ------------------------------------------------------------------------------------------- 57 | Default mode 58 | ------------------------------------------------------------------------------------------- 59 | The default mode applies the changes that are recommended for most users. This includes: 60 | - Remove the default selection of apps, the list can be found in the 'Appslist.txt' file. 61 | - Disable telemetry, diagnostic data, app-launch tracking & targeted ads. 62 | - Disable tips, tricks, suggestions and ads in start, settings, notifications and more. 63 | - Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper) 64 | - Disable & remove Bing web search, Bing AI and Cortana from Windows search. 65 | - Disable & remove Microsoft Copilot. (W11 only) 66 | - Disable Fast Start-up to ensure a full shutdown. 67 | - Show file extensions for known file types. 68 | - Hide the 3D objects folder in Windows Explorer. (W10 only) 69 | - Disable the widget service & hide the icon from the taskbar. 70 | - Hide the Chat (meet now) icon from the taskbar. 71 | 72 | 73 | -------------------------------------------------------------------------------- /Assets/Start/What is this file.txt: -------------------------------------------------------------------------------- 1 | The `start2.bin` file is used by Windows 11 to save the apps or app stubs that are pinned to the start menu. 2 | 3 | This file is a binary that cannot be easily edited. For this reason Win11Debloat includes a version of this binary file that has no apps pinned at all, allowing Win11Debloat to clear the start menu pinned apps for you. -------------------------------------------------------------------------------- /Assets/Start/start2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Assets/Start/start2.bin -------------------------------------------------------------------------------- /Assets/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Assets/menu.png -------------------------------------------------------------------------------- /Get.ps1: -------------------------------------------------------------------------------- 1 | param ( 2 | [switch]$Silent, 3 | [switch]$Verbose, 4 | [switch]$Sysprep, 5 | [string]$LogPath, 6 | [string]$User, 7 | [switch]$CreateRestorePoint, 8 | [switch]$RunAppsListGenerator, [switch]$RunAppConfigurator, 9 | [switch]$RunDefaults, [switch]$RunWin11Defaults, 10 | [switch]$RunSavedSettings, 11 | [switch]$RemoveApps, 12 | [switch]$RemoveAppsCustom, 13 | [switch]$RemoveGamingApps, 14 | [switch]$RemoveCommApps, 15 | [switch]$RemoveDevApps, 16 | [switch]$RemoveHPApps, 17 | [switch]$RemoveW11Outlook, 18 | [switch]$ForceRemoveEdge, 19 | [switch]$DisableDVR, 20 | [switch]$DisableTelemetry, 21 | [switch]$DisableFastStartup, 22 | [switch]$DisableBingSearches, [switch]$DisableBing, 23 | [switch]$DisableDesktopSpotlight, 24 | [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, 25 | [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, 26 | [switch]$DisableSettings365Ads, 27 | [switch]$DisableSettingsHome, 28 | [switch]$ShowHiddenFolders, 29 | [switch]$ShowKnownFileExt, 30 | [switch]$HideDupliDrive, 31 | [switch]$EnableDarkMode, 32 | [switch]$DisableTransparency, 33 | [switch]$DisableAnimations, 34 | [switch]$TaskbarAlignLeft, 35 | [switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb, 36 | [switch]$HideTaskview, 37 | [switch]$DisableStartRecommended, 38 | [switch]$DisableStartPhoneLink, 39 | [switch]$DisableCopilot, 40 | [switch]$DisableRecall, 41 | [switch]$DisableWidgets, [switch]$HideWidgets, 42 | [switch]$DisableChat, [switch]$HideChat, 43 | [switch]$EnableEndTask, 44 | [switch]$ClearStart, 45 | [string]$ReplaceStart, 46 | [switch]$ClearStartAllUsers, 47 | [string]$ReplaceStartAllUsers, 48 | [switch]$RevertContextMenu, 49 | [switch]$DisableMouseAcceleration, 50 | [switch]$DisableStickyKeys, 51 | [switch]$HideHome, 52 | [switch]$HideGallery, 53 | [switch]$ExplorerToHome, 54 | [switch]$ExplorerToThisPC, 55 | [switch]$ExplorerToDownloads, 56 | [switch]$ExplorerToOneDrive, 57 | [switch]$DisableOnedrive, [switch]$HideOnedrive, 58 | [switch]$Disable3dObjects, [switch]$Hide3dObjects, 59 | [switch]$DisableMusic, [switch]$HideMusic, 60 | [switch]$DisableIncludeInLibrary, [switch]$HideIncludeInLibrary, 61 | [switch]$DisableGiveAccessTo, [switch]$HideGiveAccessTo, 62 | [switch]$DisableShare, [switch]$HideShare 63 | ) 64 | 65 | # Show error if current powershell environment does not have LanguageMode set to FullLanguage 66 | if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") { 67 | Write-Host "Error: Win11Debloat is unable to run on your system. PowerShell execution is restricted by security policies" -ForegroundColor Red 68 | Write-Output "" 69 | Write-Output "Press enter to exit..." 70 | Read-Host | Out-Null 71 | Exit 72 | } 73 | 74 | Clear-Host 75 | Write-Output "-------------------------------------------------------------------------------------------" 76 | Write-Output " Win11Debloat Script - Get" 77 | Write-Output "-------------------------------------------------------------------------------------------" 78 | 79 | Write-Output "> Downloading Win11Debloat..." 80 | 81 | # Download latest version of Win11Debloat from github as zip archive 82 | Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/zipball/2025.06.12 -OutFile "$env:TEMP/win11debloat.zip" 83 | 84 | # Remove old script folder if it exists, except for CustomAppsList and SavedSettings files 85 | if (Test-Path "$env:TEMP/Win11Debloat") { 86 | Write-Output "" 87 | Write-Output "> Cleaning up old Win11Debloat folder..." 88 | Get-ChildItem -Path "$env:TEMP/Win11Debloat" -Exclude CustomAppsList,SavedSettings,Win11Debloat.log | Remove-Item -Recurse -Force 89 | } 90 | 91 | Write-Output "" 92 | Write-Output "> Unpacking..." 93 | 94 | # Unzip archive to Win11Debloat folder 95 | Expand-Archive "$env:TEMP/win11debloat.zip" "$env:TEMP/Win11Debloat" 96 | 97 | # Remove archive 98 | Remove-Item "$env:TEMP/win11debloat.zip" 99 | 100 | # Move files 101 | Get-ChildItem -Path "$env:TEMP/Win11Debloat/Raphire-Win11Debloat-*" -Recurse | Move-Item -Destination "$env:TEMP/Win11Debloat" 102 | 103 | # Make list of arguments to pass on to the script 104 | $arguments = $($PSBoundParameters.GetEnumerator() | ForEach-Object { 105 | if ($_.Value -eq $true) { 106 | "-$($_.Key)" 107 | } 108 | else { 109 | "-$($_.Key) ""$($_.Value)""" 110 | } 111 | }) 112 | 113 | Write-Output "" 114 | Write-Output "> Running Win11Debloat..." 115 | 116 | # Run Win11Debloat script with the provided arguments 117 | $debloatProcess = Start-Process powershell.exe -PassThru -ArgumentList "-executionpolicy bypass -File $env:TEMP\Win11Debloat\Win11Debloat.ps1 $arguments" -Verb RunAs 118 | 119 | # Wait for the process to finish before continuing 120 | if ($null -ne $debloatProcess) { 121 | $debloatProcess.WaitForExit() 122 | } 123 | 124 | # Remove all remaining script files, except for CustomAppsList and SavedSettings files 125 | if (Test-Path "$env:TEMP/Win11Debloat") { 126 | Write-Output "" 127 | Write-Output "> Cleaning up..." 128 | 129 | # Cleanup, remove Win11Debloat directory 130 | Get-ChildItem -Path "$env:TEMP/Win11Debloat" -Exclude CustomAppsList,SavedSettings,Win11Debloat.log | Remove-Item -Recurse -Force 131 | } 132 | 133 | Write-Output "" 134 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Raphire (https://github.com/Raphire) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | <div align="center" markdown="1"> 2 | <sup>Special thanks to:</sup> 3 | <br> 4 | <br> 5 | <a href="https://www.warp.dev/windebloat"> 6 | <img alt="Warp sponsorship" width="400" src="https://github.com/user-attachments/assets/c21102f7-bab9-4344-a731-0cf6b341cab2"> 7 | </a> 8 | 9 | ### [Warp, the intelligent terminal for developers](https://www.warp.dev/windebloat) 10 | [Available for MacOS, Linux, & Windows](https://www.warp.dev/windebloat)<br> 11 | 12 | </div> 13 | <hr> 14 | 15 | # Win11Debloat 16 | 17 | [](https://github.com/Raphire/Win11Debloat/releases/latest) 18 | [](https://github.com/Raphire/Win11Debloat/discussions) 19 | [](https://github.com/Raphire/Win11Debloat/wiki/) 20 | 21 | Win11Debloat is a simple, easy to use and lightweight PowerShell script that allows you to quickly declutter and improve your Windows experience. It can remove pre-installed bloatware apps, disable telemetry, remove intrusive interface elements and much more. No need to painstakingly go through all the settings yourself or remove apps one by one. Win11Debloat makes the process quick and easy! 22 | 23 | The script also includes many features that system administrators will enjoy. Such as support for Windows Audit mode, the option to make changes to other Windows users and the ability to run the script without requiring user input during runtime. Please refer to our [wiki](https://github.com/Raphire/Win11Debloat/wiki/) for more details. 24 | 25 |  26 | 27 | #### Did this script help you? Please consider buying me a cup of coffee to support my work 28 | 29 | [](https://ko-fi.com/M4M5C6UPC) 30 | 31 | ## Usage 32 | 33 | > [!Warning] 34 | > 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 [here](https://github.com/Raphire/Win11Debloat/issues). 35 | 36 | ### Quick method 37 | 38 | Download & run the script automatically via PowerShell. 39 | 40 | 1. Open PowerShell or Terminal, preferably as an administrator. 41 | 2. Copy and paste the command below into PowerShell: 42 | 43 | ```PowerShell 44 | & ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) 45 | ``` 46 | 47 | 3. Wait for the script to automatically download Win11Debloat. 48 | 4. Carefully read through and follow the on-screen instructions. 49 | 50 | This method supports parameters to customize the behaviour of the script. Please click [here](https://github.com/Raphire/Win11Debloat/wiki/How-To-Use#parameters) for more information. 51 | 52 | ### Traditional method 53 | 54 | <details> 55 | <summary>Manually download & run the script.</summary><br/> 56 | 57 | 1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/releases/latest), and extract the .ZIP file to your desired location. 58 | 2. Navigate to the Win11Debloat folder 59 | 3. Double click the `Run.bat` file to start the script. NOTE: If the console window immediately closes and nothing happens, try the advanced method below. 60 | 4. Accept the Windows UAC prompt to run the script as administrator, this is required for the script to function. 61 | 5. Carefully read through and follow the on-screen instructions. 62 | </details> 63 | 64 | ### Advanced method 65 | 66 | <details> 67 | <summary>Manually download the script & run the script via PowerShell. Recommended for advanced users.</summary><br/> 68 | 69 | 1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/releases/latest), and extract the .ZIP file to your desired location. 70 | 2. Open PowerShell or Terminal as an administrator. 71 | 3. Temporarily enable PowerShell execution by entering the following command: 72 | 73 | ```PowerShell 74 | Set-ExecutionPolicy Unrestricted -Scope Process -Force 75 | ``` 76 | 77 | 4. In PowerShell, navigate to the directory where the files were extracted. Example: `cd c:\Win11Debloat` 78 | 5. Now run the script by entering the following command: 79 | 80 | ```PowerShell 81 | .\Win11Debloat.ps1 82 | ``` 83 | 84 | 6. Carefully read through and follow the on-screen instructions. 85 | 86 | This method supports parameters to customize the behaviour of the script. Please click [here](https://github.com/Raphire/Win11Debloat/wiki/How-To-Use#parameters) for more information. 87 | </details> 88 | 89 | ## Features 90 | 91 | Below is an overview of the key features and functionality offered by Win11Debloat. For more information about what features are included in the default mode please refer to [this section](#default-settings) below. 92 | 93 | > [!Tip] 94 | > All of the changes made by Win11Debloat can easily be reverted and almost all of the apps can be reinstalled through the Microsoft Store. A full guide on how to revert changes can be found [here](https://github.com/Raphire/Win11Debloat/wiki/Reverting-Changes). 95 | 96 | #### App Removal 97 | 98 | - Remove a wide variety of preinstalled apps. Click [here](https://github.com/Raphire/Win11Debloat/wiki/App-Removal) for more info. 99 | - Remove or replace all pinned apps from start for the current user, or for all existing & new users. (W11 only) 100 | 101 | #### Telemetry, Tracking & Suggested Content 102 | 103 | - Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. 104 | - Disable tips, tricks, suggestions and ads in start, settings, notifications, File Explorer, and on the lockscreen. 105 | - Disable the 'Windows Spotlight' desktop background option. 106 | 107 | #### Bing Web Search, Copilot & More 108 | 109 | - Disable & remove Bing web search, Bing AI and Cortana from Windows search. 110 | - Disable & remove Microsoft Copilot. (W11 only) 111 | - Disable Windows Recall snapshots. (W11 only) 112 | 113 | #### Personalisation 114 | 115 | - Enable dark mode for system and apps. 116 | - Disable transparency, animations and visual effects. 117 | - Turn off Enhance Pointer Precision, also known as mouse acceleration. 118 | - Disable the Sticky Keys keyboard shortcut. (W11 only) 119 | - Restore the old Windows 10 style context menu. (W11 only) 120 | - Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only) 121 | 122 | #### File Explorer 123 | 124 | - Change the default location that File Explorer opens to. 125 | - Show hidden files, folders and drives. 126 | - Show file extensions for known file types. 127 | - Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only) 128 | - Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only) 129 | - Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under 'This PC' remains. 130 | 131 | #### Taskbar 132 | 133 | - Align taskbar icons to the left. (W11 only) 134 | - Hide or change the search icon/box on the taskbar. (W11 only) 135 | - Hide the taskview button from the taskbar. (W11 only) 136 | - Disable the widgets service & hide icon from the taskbar. 137 | - Hide the chat (meet now) icon from the taskbar. 138 | - Enable the 'End Task' option in the taskbar right click menu. (W11 only) 139 | 140 | #### Start 141 | - Disable & hide the recommended section in the start menu. (W11 only) 142 | - Disable the Phone Link mobile devices integration in the start menu. (W11 only) 143 | 144 | #### Other 145 | 146 | - Disable Xbox game/screen recording, this also stops gaming overlay popups. 147 | - Disable Fast Start-up to ensure a full shutdown. 148 | - Option to [apply changes to a different user](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#running-as-another-user), instead of the currently logged in user. 149 | - [Sysprep mode](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#sysprep-mode) to apply changes to the Windows Default user profile. Afterwards, all new users will have the changes automatically applied to them. 150 | 151 | ### Default Settings 152 | 153 | Win11Debloat offers a default mode that allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. To apply the default settings, launch the script as you normally would and select option `1` in the script menu. Alternatively, you can launch the script with the `-RunDefaults` parameter. Example: 154 | 155 | ```Powershell 156 | & ([scriptblock]::Create((irm "https://debloat.raphi.re/"))) -RunDefaults 157 | ``` 158 | 159 | #### Changes included in the default mode 160 | - Remove the default selection of bloatware apps. (See below for full list) 161 | - Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads. 162 | - Disable tips, tricks, suggestions and ads in start, settings, notifications, File Explorer, and on the lockscreen. 163 | - Disable & remove Bing web search, Bing AI and Cortana from Windows search. 164 | - Disable & remove Microsoft Copilot. (W11 only) 165 | - Disable Fast Start-up to ensure a full shutdown. 166 | - Show file extensions for known file types. 167 | - Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only) 168 | - Disable the widget service & hide the icon from the taskbar. 169 | - Hide the Chat (meet now) icon from the taskbar. 170 | 171 | #### Apps that ARE removed as part of the default mode 172 | 173 | <details> 174 | <summary>Click to expand</summary> 175 | <blockquote> 176 | 177 | Microsoft bloat: 178 | - Clipchamp.Clipchamp 179 | - Microsoft.3DBuilder 180 | - Microsoft.549981C3F5F10 (Cortana app) 181 | - Microsoft.BingFinance 182 | - Microsoft.BingFoodAndDrink 183 | - Microsoft.BingHealthAndFitness 184 | - Microsoft.BingNews 185 | - Microsoft.BingSearch* (Bing web search in Windows) 186 | - Microsoft.BingSports 187 | - Microsoft.BingTranslator 188 | - Microsoft.BingTravel 189 | - Microsoft.BingWeather 190 | - Microsoft.Copilot 191 | - Microsoft.Getstarted (Cannot be uninstalled in Windows 11) 192 | - Microsoft.Messaging 193 | - Microsoft.Microsoft3DViewer 194 | - Microsoft.MicrosoftJournal 195 | - Microsoft.MicrosoftOfficeHub 196 | - Microsoft.MicrosoftPowerBIForWindows 197 | - Microsoft.MicrosoftSolitaireCollection 198 | - Microsoft.MicrosoftStickyNotes 199 | - Microsoft.MixedReality.Portal 200 | - Microsoft.NetworkSpeedTest 201 | - Microsoft.News 202 | - Microsoft.Office.OneNote (Discontinued UWP version only, does not remove new MS365 versions) 203 | - Microsoft.Office.Sway 204 | - Microsoft.OneConnect 205 | - Microsoft.Print3D 206 | - Microsoft.SkypeApp 207 | - Microsoft.Todos 208 | - Microsoft.WindowsAlarms 209 | - Microsoft.WindowsFeedbackHub 210 | - Microsoft.WindowsMaps 211 | - Microsoft.WindowsSoundRecorder 212 | - Microsoft.XboxApp (Old Xbox Console Companion App, no longer supported) 213 | - Microsoft.ZuneVideo 214 | - MicrosoftCorporationII.MicrosoftFamily (Microsoft Family Safety) 215 | - MicrosoftTeams (Old personal version of MS Teams from the MS Store) 216 | - MSTeams (New MS Teams app) 217 | 218 | Third party bloat: 219 | - ACGMediaPlayer 220 | - ActiproSoftwareLLC 221 | - AdobeSystemsIncorporated.AdobePhotoshopExpress 222 | - Amazon.com.Amazon 223 | - AmazonVideo.PrimeVideo 224 | - Asphalt8Airborne 225 | - AutodeskSketchBook 226 | - CaesarsSlotsFreeCasino 227 | - COOKINGFEVER 228 | - CyberLinkMediaSuiteEssentials 229 | - DisneyMagicKingdoms 230 | - Disney 231 | - Dolby 232 | - DrawboardPDF 233 | - Duolingo-LearnLanguagesforFree 234 | - EclipseManager 235 | - Facebook 236 | - FarmVille2CountryEscape 237 | - fitbit 238 | - Flipboard 239 | - HiddenCity 240 | - HULULLC.HULUPLUS 241 | - iHeartRadio 242 | - Instagram 243 | - king.com.BubbleWitch3Saga 244 | - king.com.CandyCrushSaga 245 | - king.com.CandyCrushSodaSaga 246 | - LinkedInforWindows 247 | - MarchofEmpires 248 | - Netflix 249 | - NYTCrossword 250 | - OneCalendar 251 | - PandoraMediaInc 252 | - PhototasticCollage 253 | - PicsArt-PhotoStudio 254 | - Plex 255 | - PolarrPhotoEditorAcademicEdition 256 | - Royal Revolt 257 | - Shazam 258 | - Sidia.LiveWallpaper 259 | - SlingTV 260 | - Speed Test 261 | - Spotify 262 | - TikTok 263 | - TuneInRadio 264 | - Twitter 265 | - Viber 266 | - WinZipUniversal 267 | - Wunderlist 268 | - XING 269 | 270 | * App is removed when disabling Bing in Windows search. 271 | </blockquote> 272 | </details> 273 | 274 | #### Apps that are NOT removed as part of the default mode 275 | 276 | <details> 277 | <summary>Click to expand</summary> 278 | <blockquote> 279 | 280 | General apps that are not removed by default: 281 | - Microsoft.Edge (Edge browser, only removeable in the EEA) 282 | - Microsoft.GetHelp (Required for some Windows 11 Troubleshooters) 283 | - Microsoft.MSPaint (Paint 3D) 284 | - Microsoft.OutlookForWindows* (New mail app) 285 | - Microsoft.OneDrive (OneDrive consumer) 286 | - Microsoft.Paint (Classic Paint) 287 | - Microsoft.People* (Required for & included with Mail & Calendar) 288 | - Microsoft.ScreenSketch (Snipping Tool) 289 | - Microsoft.Whiteboard (Only preinstalled on devices with touchscreen and/or pen support) 290 | - Microsoft.Windows.Photos 291 | - Microsoft.WindowsCalculator 292 | - Microsoft.WindowsCamera 293 | - Microsoft.WindowsNotepad 294 | - Microsoft.windowscommunicationsapps* (Mail & Calendar) 295 | - Microsoft.WindowsStore (Microsoft Store, NOTE: This app cannot be reinstalled!) 296 | - Microsoft.WindowsTerminal (New default terminal app in Windows 11) 297 | - Microsoft.YourPhone (Phone Link) 298 | - Microsoft.Xbox.TCUI (UI framework, removing this may break MS store, photos and certain games) 299 | - Microsoft.ZuneMusic (Modern Media Player) 300 | - MicrosoftWindows.CrossDevice (Phone integration within File Explorer, Camera and more) 301 | 302 | HP apps that are not removed by default: 303 | - AD2F1837.HPAIExperienceCenter* 304 | - AD2F1837.HPConnectedMusic* 305 | - AD2F1837.HPConnectedPhotopoweredbySnapfish* 306 | - AD2F1837.HPDesktopSupportUtilities* 307 | - AD2F1837.HPEasyClean* 308 | - AD2F1837.HPFileViewer* 309 | - AD2F1837.HPJumpStarts* 310 | - AD2F1837.HPPCHardwareDiagnosticsWindows* 311 | - AD2F1837.HPPowerManager* 312 | - AD2F1837.HPPrinterControl* 313 | - AD2F1837.HPPrivacySettings* 314 | - AD2F1837.HPQuickDrop* 315 | - AD2F1837.HPQuickTouch* 316 | - AD2F1837.HPRegistration* 317 | - AD2F1837.HPSupportAssistant* 318 | - AD2F1837.HPSureShieldAI* 319 | - AD2F1837.HPSystemInformation* 320 | - AD2F1837.HPWelcome* 321 | - AD2F1837.HPWorkWell* 322 | - AD2F1837.myHP* 323 | 324 | Gaming related apps that are not removed by default: 325 | - Microsoft.GamingApp* (Modern Xbox Gaming App, required for installing some games) 326 | - Microsoft.XboxGameOverlay* (Game overlay, required for some games) 327 | - Microsoft.XboxGamingOverlay* (Game overlay, required for some games) 328 | - Microsoft.XboxIdentityProvider (Xbox sign-in framework, required for some games) 329 | - Microsoft.XboxSpeechToTextOverlay (Might be required for some games, NOTE: This app cannot be reinstalled!) 330 | 331 | Developer related apps that are not removed by default: 332 | - Microsoft.PowerAutomateDesktop* 333 | - Microsoft.RemoteDesktop* 334 | - Windows.DevHome* 335 | 336 | * Can be removed by running the script with the relevant parameter. (Please refer to the wiki for more details) 337 | </blockquote> 338 | </details> 339 | 340 | ## License 341 | 342 | Win11Debloat is licensed under the MIT license. See the LICENSE file for more information. 343 | -------------------------------------------------------------------------------- /Regfiles/Align_Taskbar_Left.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Align_Taskbar_Left.reg -------------------------------------------------------------------------------- /Regfiles/Disable_AI_Recall.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsAI] 4 | "DisableAIDataAnalysis"=dword:00000001 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] 7 | "DisableAIDataAnalysis"=dword:00000001 8 | 9 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] 10 | "AllowRecallEnablement"=dword:00000000 11 | -------------------------------------------------------------------------------- /Regfiles/Disable_Animations.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Control Panel\Desktop] 4 | "UserPreferencesMask"=hex:90,12,07,80,10,00,00,00 5 | -------------------------------------------------------------------------------- /Regfiles/Disable_Bing_Cortana_In_Search.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Bing_Cortana_In_Search.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Chat_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Chat_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Copilot.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Disable Copilot button on taskbar 4 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 5 | "ShowCopilotButton"=dword:00000000 6 | 7 | ; Disable Copilot service for current user 8 | [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot] 9 | "TurnOffWindowsCopilot"=dword:00000001 10 | 11 | ; Disable Copilot service for all users 12 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot] 13 | "TurnOffWindowsCopilot"=dword:00000001 -------------------------------------------------------------------------------- /Regfiles/Disable_DVR.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\System\GameConfigStore] 4 | "GameDVR_Enabled"=dword:00000000 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] 7 | "AllowGameDVR"=dword:00000000 8 | -------------------------------------------------------------------------------- /Regfiles/Disable_Desktop_Spotlight.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Desktop_Spotlight.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Enhance_Pointer_Precision.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Control Panel\Mouse] 4 | "MouseSpeed"="0" 5 | "MouseThreshold1"="0" 6 | "MouseThreshold2"="0" 7 | -------------------------------------------------------------------------------- /Regfiles/Disable_Fast_Startup.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power] 4 | "HiberbootEnabled"=dword:00000000 5 | -------------------------------------------------------------------------------- /Regfiles/Disable_Give_access_to_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Give_access_to_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Include_in_library_from_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Include_in_library_from_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Lockscreen_Tips.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Lockscreen_Tips.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Phone_Link_In_Start.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Disable Show mobile device in Start 4 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe] 5 | "IsEnabled"=dword:00000000 6 | -------------------------------------------------------------------------------- /Regfiles/Disable_Settings_365_Ads.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Disable MS 365 Ads in Settings Home 4 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] 5 | "DisableConsumerAccountStateContent"=dword:00000001 6 | -------------------------------------------------------------------------------- /Regfiles/Disable_Settings_Home.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] 4 | "SettingsPageVisibility"="hide:home" 5 | -------------------------------------------------------------------------------- /Regfiles/Disable_Share_from_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Share_from_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Show_More_Options_Context_Menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Show_More_Options_Context_Menu.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Start_Recommended.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] 4 | "HideRecommendedSection"=dword:00000001 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Start] 7 | "HideRecommendedSection"=dword:00000001 8 | 9 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Education] 10 | "IsEducationEnvironment"=dword:00000001 11 | 12 | ; Change start menu layout to show more pins 13 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 14 | "Start_Layout"=dword:00000001 15 | -------------------------------------------------------------------------------- /Regfiles/Disable_Sticky_Keys_Shortcut.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys] 4 | "Flags"="506" 5 | -------------------------------------------------------------------------------- /Regfiles/Disable_Telemetry.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Telemetry.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Transparency.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] 4 | "EnableTransparency"=dword:00000000 5 | -------------------------------------------------------------------------------- /Regfiles/Disable_Widgets_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Widgets_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Disable_Windows_Suggestions.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Disable_Windows_Suggestions.reg -------------------------------------------------------------------------------- /Regfiles/Enable_Dark_Mode.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize] 4 | "AppsUseLightTheme"=dword:00000000 5 | "SystemUsesLightTheme"=dword:00000000 6 | -------------------------------------------------------------------------------- /Regfiles/Enable_End_Task.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings] 4 | "TaskbarEndTask"=dword:00000001 5 | -------------------------------------------------------------------------------- /Regfiles/Hide_3D_Objects_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_3D_Objects_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Hide_Gallery_from_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_Gallery_from_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Hide_Home_from_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_Home_from_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Hide_Music_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_Music_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Hide_Onedrive_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_Onedrive_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Hide_Search_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_Search_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Hide_Taskview_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_Taskview_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Launch_File_Explorer_To_Downloads.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000003 5 | -------------------------------------------------------------------------------- /Regfiles/Launch_File_Explorer_To_Home.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000002 5 | -------------------------------------------------------------------------------- /Regfiles/Launch_File_Explorer_To_OneDrive.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000004 5 | -------------------------------------------------------------------------------- /Regfiles/Launch_File_Explorer_To_This_PC.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000001 5 | -------------------------------------------------------------------------------- /Regfiles/Show_Extensions_For_Known_File_Types.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Show_Extensions_For_Known_File_Types.reg -------------------------------------------------------------------------------- /Regfiles/Show_Hidden_Folders.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Show_Hidden_Folders.reg -------------------------------------------------------------------------------- /Regfiles/Show_Search_Box.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Show_Search_Box.reg -------------------------------------------------------------------------------- /Regfiles/Show_Search_Icon.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Show_Search_Icon.reg -------------------------------------------------------------------------------- /Regfiles/Show_Search_Icon_And_Label.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Show_Search_Icon_And_Label.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Align_Taskbar_Left.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Align_Taskbar_Left.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_AI_Recall.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Software\Policies\Microsoft\Windows\WindowsAI] 4 | "DisableAIDataAnalysis"=dword:00000001 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] 7 | "DisableAIDataAnalysis"=dword:00000001 8 | 9 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] 10 | "AllowRecallEnablement"=dword:00000000 11 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Animations.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Control Panel\Desktop] 4 | "UserPreferencesMask"=hex:90,12,07,80,10,00,00,00 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Bing_Cortana_In_Search.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Bing_Cortana_In_Search.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Chat_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Chat_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Copilot.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Disable Copilot button on taskbar 4 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 5 | "ShowCopilotButton"=dword:00000000 6 | 7 | ; Disable Copilot service for current user 8 | [hkey_users\default\Software\Policies\Microsoft\Windows\WindowsCopilot] 9 | "TurnOffWindowsCopilot"=dword:00000001 10 | 11 | ; Disable Copilot service for all users 12 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot] 13 | "TurnOffWindowsCopilot"=dword:00000001 -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_DVR.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\System\GameConfigStore] 4 | "GameDVR_Enabled"=dword:00000000 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] 7 | "AllowGameDVR"=dword:00000000 8 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Desktop_Spotlight.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Desktop_Spotlight.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Enhance_Pointer_Precision.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Control Panel\Mouse] 4 | "MouseSpeed"="0" 5 | "MouseThreshold1"="0" 6 | "MouseThreshold2"="0" 7 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Fast_Startup.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power] 4 | "HiberbootEnabled"=dword:00000000 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Give_access_to_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Give_access_to_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Include_in_library_from_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Include_in_library_from_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Lockscreen_Tips.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Lockscreen_Tips.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Phone_Link_In_Start.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Disable Show mobile device in Start 4 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe] 5 | "IsEnabled"=dword:00000000 6 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Settings_365_Ads.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Disable MS 365 Ads in Settings Home 4 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] 5 | "DisableConsumerAccountStateContent"=dword:00000001 6 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Settings_Home.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] 4 | "SettingsPageVisibility"="hide:home" 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Share_from_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Share_from_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Show_More_Options_Context_Menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Show_More_Options_Context_Menu.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Start_Recommended.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] 4 | "HideRecommendedSection"=dword:00000001 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Start] 7 | "HideRecommendedSection"=dword:00000001 8 | 9 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Education] 10 | "IsEducationEnvironment"=dword:00000001 11 | 12 | ; Change start menu layout to show more pins 13 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 14 | "Start_Layout"=dword:00000001 15 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Sticky_Keys_Shortcut.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Control Panel\Accessibility\StickyKeys] 4 | "Flags"="506" 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Telemetry.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Telemetry.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Transparency.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] 4 | "EnableTransparency"=dword:00000000 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Widgets_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Widgets_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Disable_Windows_Suggestions.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Disable_Windows_Suggestions.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Enable_Dark_Mode.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize] 4 | "AppsUseLightTheme"=dword:00000000 5 | "SystemUsesLightTheme"=dword:00000000 6 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Enable_End_Task.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings] 4 | "TaskbarEndTask"=dword:00000001 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_3D_Objects_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_3D_Objects_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_Gallery_from_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_Gallery_from_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_Home_from_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_Home_from_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_Music_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_Music_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_Onedrive_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_Onedrive_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_Search_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_Search_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_Taskview_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_Taskview_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Launch_File_Explorer_To_Downloads.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000003 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Launch_File_Explorer_To_Home.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000002 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Launch_File_Explorer_To_OneDrive.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000004 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Launch_File_Explorer_To_This_PC.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 4 | "LaunchTo"=dword:00000001 5 | -------------------------------------------------------------------------------- /Regfiles/Sysprep/Show_Extensions_For_Known_File_Types.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Show_Extensions_For_Known_File_Types.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Show_Hidden_Folders.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Show_Hidden_Folders.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Show_Search_Box.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Show_Search_Box.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Show_Search_Icon.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Show_Search_Icon.reg -------------------------------------------------------------------------------- /Regfiles/Sysprep/Show_Search_Icon_And_Label.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Sysprep/Show_Search_Icon_And_Label.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Align_Taskbar_Center.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Align_Taskbar_Center.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Disable_End_Task.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings] 4 | "TaskbarEndTask"=dword:00000000 5 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_AI_Recall.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\WindowsAI\DisableAIDataAnalysis] 4 | "value"=dword:00000000 5 | 6 | [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsAI] 7 | "DisableAIDataAnalysis"=- 8 | 9 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] 10 | "DisableAIDataAnalysis"=- 11 | 12 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] 13 | "AllowRecallEnablement"=- 14 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Activity_History.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Enable Activity History 4 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System] 5 | "PublishUserActivities"=- 6 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Animations.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Control Panel\Desktop] 4 | "UserPreferencesMask"=hex:9e,1e,07,80,12,00,00,00 5 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Bing_Cortana_In_Search.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Bing_Cortana_In_Search.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Chat_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Chat_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Copilot.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Enable Copilot button on taskbar 4 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 5 | "ShowCopilotButton"=dword:00000001 6 | 7 | ; Enable Copilot service for current user 8 | [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot] 9 | "TurnOffWindowsCopilot"=- 10 | 11 | ; Enable Copilot service for all users 12 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot] 13 | "TurnOffWindowsCopilot"=- -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_DVR.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\System\GameConfigStore] 4 | "GameDVR_Enabled"=dword:00000001 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR] 7 | "AllowGameDVR"=dword:00000001 -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Desktop_Spotlight.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Desktop_Spotlight.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Enhance_Pointer_Precision.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Control Panel\Mouse] 4 | "MouseSpeed"="1" 5 | "MouseThreshold1"="6" 6 | "MouseThreshold2"="10" 7 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Fast_Startup.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power] 4 | "HiberbootEnabled"=dword:00000001 5 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Give_access_to_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Give_access_to_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Include_in_library_to_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Include_in_library_to_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Light_Mode.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize] 4 | "AppsUseLightTheme"=dword:00000001 5 | "SystemUsesLightTheme"=dword:00000001 6 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Lockscreen_Tips.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Lockscreen_Tips.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Phone_Link_In_Start.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Enable Show mobile device in Start 4 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe] 5 | "IsEnabled"=dword:00000001 6 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Settings_365_Ads.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | ; Enable MS 365 Ads in Settings Home 4 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent] 5 | "DisableConsumerAccountStateContent"=- 6 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Settings_Home.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] 4 | "SettingsPageVisibility"=- 5 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Share_to_context_menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Share_to_context_menu.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Start_Recommended.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer] 4 | "HideRecommendedSection"=dword:00000000 5 | 6 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Start] 7 | "HideRecommendedSection"=dword:00000000 8 | 9 | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\Education] 10 | "IsEducationEnvironment"=dword:00000000 11 | 12 | ; Set start menu layout to default 13 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] 14 | "Start_Layout"=dword:00000000 -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Sticky_Keys_Shortcut.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys] 4 | "Flags"="510" 5 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Telemetry.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Telemetry.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Transparency.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] 4 | "EnableTransparency"=dword:00000001 5 | -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_W11_Style_Context_Menu.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_W11_Style_Context_Menu.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Widgets_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Widgets_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Enable_Windows_Suggestions.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Enable_Windows_Suggestions.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Hide_Extensions_For_Known_File_Types.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Hide_Extensions_For_Known_File_Types.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Hide_Hidden_Folders.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Hide_Hidden_Folders.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Show_3D_Objects_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Show_3D_Objects_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Show_Gallery_in_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Show_Gallery_in_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Show_Home_from_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Show_Home_from_Explorer.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Show_Music_Folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Show_Music_Folder.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Show_Onedrive_folder.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Show_Onedrive_folder.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Show_Taskview_Taskbar.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Show_Taskview_Taskbar.reg -------------------------------------------------------------------------------- /Regfiles/Undo/Show_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raphire/Win11Debloat/49233234fad4b8f456fd577f6ea19136eb13ec21/Regfiles/Undo/Show_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg -------------------------------------------------------------------------------- /Run.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Set Windows Terminal installation paths. (Default and Scoop installation) 3 | set "wtDefaultPath=%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe" 4 | set "wtScoopPath=%USERPROFILE%\scoop\apps\windows-terminal\current\wt.exe" 5 | 6 | :: Launch the script in Windows Terminal if installed, otherwise use default PowerShell. 7 | if exist "%wtDefaultPath%" ( 8 | PowerShell -Command "Start-Process -FilePath '%wtDefaultPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs" 9 | ) else if exist "%wtScoopPath%" ( 10 | PowerShell -Command "Start-Process -FilePath '%wtScoopPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs" 11 | ) else ( 12 | echo Windows Terminal not found, using default PowerShell... 13 | PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs}" 14 | ) 15 | -------------------------------------------------------------------------------- /Win11Debloat.ps1: -------------------------------------------------------------------------------- 1 | #Requires -RunAsAdministrator 2 | 3 | [CmdletBinding(SupportsShouldProcess)] 4 | param ( 5 | [switch]$Silent, 6 | [switch]$Sysprep, 7 | [string]$LogPath, 8 | [string]$User, 9 | [switch]$CreateRestorePoint, 10 | [switch]$RunAppsListGenerator, [switch]$RunAppConfigurator, 11 | [switch]$RunDefaults, [switch]$RunWin11Defaults, 12 | [switch]$RunSavedSettings, 13 | [switch]$RemoveApps, 14 | [switch]$RemoveAppsCustom, 15 | [switch]$RemoveGamingApps, 16 | [switch]$RemoveCommApps, 17 | [switch]$RemoveDevApps, 18 | [switch]$RemoveHPApps, 19 | [switch]$RemoveW11Outlook, 20 | [switch]$ForceRemoveEdge, 21 | [switch]$DisableDVR, 22 | [switch]$DisableTelemetry, 23 | [switch]$DisableFastStartup, 24 | [switch]$DisableBingSearches, [switch]$DisableBing, 25 | [switch]$DisableDesktopSpotlight, 26 | [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, 27 | [switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions, 28 | [switch]$DisableSettings365Ads, 29 | [switch]$DisableSettingsHome, 30 | [switch]$ShowHiddenFolders, 31 | [switch]$ShowKnownFileExt, 32 | [switch]$HideDupliDrive, 33 | [switch]$EnableDarkMode, 34 | [switch]$DisableTransparency, 35 | [switch]$DisableAnimations, 36 | [switch]$TaskbarAlignLeft, 37 | [switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb, 38 | [switch]$HideTaskview, 39 | [switch]$DisableStartRecommended, 40 | [switch]$DisableStartPhoneLink, 41 | [switch]$DisableCopilot, 42 | [switch]$DisableRecall, 43 | [switch]$DisableWidgets, [switch]$HideWidgets, 44 | [switch]$DisableChat, [switch]$HideChat, 45 | [switch]$EnableEndTask, 46 | [switch]$ClearStart, 47 | [string]$ReplaceStart, 48 | [switch]$ClearStartAllUsers, 49 | [string]$ReplaceStartAllUsers, 50 | [switch]$RevertContextMenu, 51 | [switch]$DisableMouseAcceleration, 52 | [switch]$DisableStickyKeys, 53 | [switch]$HideHome, 54 | [switch]$HideGallery, 55 | [switch]$ExplorerToHome, 56 | [switch]$ExplorerToThisPC, 57 | [switch]$ExplorerToDownloads, 58 | [switch]$ExplorerToOneDrive, 59 | [switch]$DisableOnedrive, [switch]$HideOnedrive, 60 | [switch]$Disable3dObjects, [switch]$Hide3dObjects, 61 | [switch]$DisableMusic, [switch]$HideMusic, 62 | [switch]$DisableIncludeInLibrary, [switch]$HideIncludeInLibrary, 63 | [switch]$DisableGiveAccessTo, [switch]$HideGiveAccessTo, 64 | [switch]$DisableShare, [switch]$HideShare 65 | ) 66 | 67 | 68 | # Show error if current powershell environment is limited by security policies 69 | if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") { 70 | Write-Host "Error: Win11Debloat is unable to run on your system, powershell execution is restricted by security policies" -ForegroundColor Red 71 | AwaitKeyToExit 72 | } 73 | 74 | # Log script output to 'Win11Debloat.log' at the specified path 75 | if ($LogPath -and (Test-Path $LogPath)) { 76 | Start-Transcript -Path "$LogPath/Win11Debloat.log" -Append -IncludeInvocationHeader -Force | Out-Null 77 | } 78 | else { 79 | Start-Transcript -Path "$PSScriptRoot/Win11Debloat.log" -Append -IncludeInvocationHeader -Force | Out-Null 80 | } 81 | 82 | # Shows application selection form that allows the user to select what apps they want to remove or keep 83 | function ShowAppSelectionForm { 84 | [reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null 85 | [reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null 86 | 87 | # Initialise form objects 88 | $form = New-Object System.Windows.Forms.Form 89 | $label = New-Object System.Windows.Forms.Label 90 | $button1 = New-Object System.Windows.Forms.Button 91 | $button2 = New-Object System.Windows.Forms.Button 92 | $selectionBox = New-Object System.Windows.Forms.CheckedListBox 93 | $loadingLabel = New-Object System.Windows.Forms.Label 94 | $onlyInstalledCheckBox = New-Object System.Windows.Forms.CheckBox 95 | $checkUncheckCheckBox = New-Object System.Windows.Forms.CheckBox 96 | $initialFormWindowState = New-Object System.Windows.Forms.FormWindowState 97 | 98 | $script:selectionBoxIndex = -1 99 | 100 | # saveButton eventHandler 101 | $handler_saveButton_Click= 102 | { 103 | if ($selectionBox.CheckedItems -contains "Microsoft.WindowsStore" -and -not $Silent) { 104 | $warningSelection = [System.Windows.Forms.Messagebox]::Show('Are you sure you wish to uninstall the Microsoft Store? This app cannot easily be reinstalled.', 'Are you sure?', 'YesNo', 'Warning') 105 | 106 | if ($warningSelection -eq 'No') { 107 | return 108 | } 109 | } 110 | 111 | $script:SelectedApps = $selectionBox.CheckedItems 112 | 113 | # Create file that stores selected apps if it doesn't exist 114 | if (-not (Test-Path "$PSScriptRoot/CustomAppsList")) { 115 | $null = New-Item "$PSScriptRoot/CustomAppsList" 116 | } 117 | 118 | Set-Content -Path "$PSScriptRoot/CustomAppsList" -Value $script:SelectedApps 119 | 120 | $form.DialogResult = [System.Windows.Forms.DialogResult]::OK 121 | $form.Close() 122 | } 123 | 124 | # cancelButton eventHandler 125 | $handler_cancelButton_Click= 126 | { 127 | $form.Close() 128 | } 129 | 130 | $selectionBox_SelectedIndexChanged= 131 | { 132 | $script:selectionBoxIndex = $selectionBox.SelectedIndex 133 | } 134 | 135 | $selectionBox_MouseDown= 136 | { 137 | if ($_.Button -eq [System.Windows.Forms.MouseButtons]::Left) { 138 | if ([System.Windows.Forms.Control]::ModifierKeys -eq [System.Windows.Forms.Keys]::Shift) { 139 | if ($script:selectionBoxIndex -ne -1) { 140 | $topIndex = $script:selectionBoxIndex 141 | 142 | if ($selectionBox.SelectedIndex -gt $topIndex) { 143 | for (($i = ($topIndex)); $i -le $selectionBox.SelectedIndex; $i++) { 144 | $selectionBox.SetItemChecked($i, $selectionBox.GetItemChecked($topIndex)) 145 | } 146 | } 147 | elseif ($topIndex -gt $selectionBox.SelectedIndex) { 148 | for (($i = ($selectionBox.SelectedIndex)); $i -le $topIndex; $i++) { 149 | $selectionBox.SetItemChecked($i, $selectionBox.GetItemChecked($topIndex)) 150 | } 151 | } 152 | } 153 | } 154 | elseif ($script:selectionBoxIndex -ne $selectionBox.SelectedIndex) { 155 | $selectionBox.SetItemChecked($selectionBox.SelectedIndex, -not $selectionBox.GetItemChecked($selectionBox.SelectedIndex)) 156 | } 157 | } 158 | } 159 | 160 | $check_All= 161 | { 162 | for (($i = 0); $i -lt $selectionBox.Items.Count; $i++) { 163 | $selectionBox.SetItemChecked($i, $checkUncheckCheckBox.Checked) 164 | } 165 | } 166 | 167 | $load_Apps= 168 | { 169 | # Correct the initial state of the form to prevent the .Net maximized form issue 170 | $form.WindowState = $initialFormWindowState 171 | 172 | # Reset state to default before loading appslist again 173 | $script:selectionBoxIndex = -1 174 | $checkUncheckCheckBox.Checked = $False 175 | 176 | # Show loading indicator 177 | $loadingLabel.Visible = $true 178 | $form.Refresh() 179 | 180 | # Clear selectionBox before adding any new items 181 | $selectionBox.Items.Clear() 182 | 183 | # Set filePath where Appslist can be found 184 | $appsFile = "$PSScriptRoot/Appslist.txt" 185 | $listOfApps = "" 186 | 187 | if ($onlyInstalledCheckBox.Checked -and ($script:wingetInstalled -eq $true)) { 188 | # Attempt to get a list of installed apps via winget, times out after 10 seconds 189 | $job = Start-Job { return winget list --accept-source-agreements --disable-interactivity } 190 | $jobDone = $job | Wait-Job -TimeOut 10 191 | 192 | if (-not $jobDone) { 193 | # Show error that the script was unable to get list of apps from winget 194 | [System.Windows.MessageBox]::Show('Unable to load list of installed apps via winget, some apps may not be displayed in the list.', 'Error', 'Ok', 'Error') 195 | } 196 | else { 197 | # Add output of job (list of apps) to $listOfApps 198 | $listOfApps = Receive-Job -Job $job 199 | } 200 | } 201 | 202 | # Go through appslist and add items one by one to the selectionBox 203 | Foreach ($app in (Get-Content -Path $appsFile | Where-Object { $_ -notmatch '^\s*#39; -and $_ -notmatch '^# .*' -and $_ -notmatch '^# -* #' } )) { 204 | $appChecked = $true 205 | 206 | # Remove first # if it exists and set appChecked to false 207 | if ($app.StartsWith('#')) { 208 | $app = $app.TrimStart("#") 209 | $appChecked = $false 210 | } 211 | 212 | # Remove any comments from the Appname 213 | if (-not ($app.IndexOf('#') -eq -1)) { 214 | $app = $app.Substring(0, $app.IndexOf('#')) 215 | } 216 | 217 | # Remove leading and trailing spaces and `*` characters from Appname 218 | $app = $app.Trim() 219 | $appString = $app.Trim('*') 220 | 221 | # Make sure appString is not empty 222 | if ($appString.length -gt 0) { 223 | if ($onlyInstalledCheckBox.Checked) { 224 | # onlyInstalledCheckBox is checked, check if app is installed before adding it to selectionBox 225 | if (-not ($listOfApps -like ("*$appString*")) -and -not (Get-AppxPackage -Name $app)) { 226 | # App is not installed, continue with next item 227 | continue 228 | } 229 | if (($appString -eq "Microsoft.Edge") -and -not ($listOfApps -like "* Microsoft.Edge *")) { 230 | # App is not installed, continue with next item 231 | continue 232 | } 233 | } 234 | 235 | # Add the app to the selectionBox and set it's checked status 236 | $selectionBox.Items.Add($appString, $appChecked) | Out-Null 237 | } 238 | } 239 | 240 | # Hide loading indicator 241 | $loadingLabel.Visible = $False 242 | 243 | # Sort selectionBox alphabetically 244 | $selectionBox.Sorted = $True 245 | } 246 | 247 | $form.Text = "Win11Debloat Application Selection" 248 | $form.Name = "appSelectionForm" 249 | $form.DataBindings.DefaultDataSourceUpdateMode = 0 250 | $form.ClientSize = New-Object System.Drawing.Size(400,502) 251 | $form.FormBorderStyle = 'FixedDialog' 252 | $form.MaximizeBox = $False 253 | 254 | $button1.TabIndex = 4 255 | $button1.Name = "saveButton" 256 | $button1.UseVisualStyleBackColor = $True 257 | $button1.Text = "Confirm" 258 | $button1.Location = New-Object System.Drawing.Point(27,472) 259 | $button1.Size = New-Object System.Drawing.Size(75,23) 260 | $button1.DataBindings.DefaultDataSourceUpdateMode = 0 261 | $button1.add_Click($handler_saveButton_Click) 262 | 263 | $form.Controls.Add($button1) 264 | 265 | $button2.TabIndex = 5 266 | $button2.Name = "cancelButton" 267 | $button2.DialogResult = [System.Windows.Forms.DialogResult]::Cancel 268 | $button2.UseVisualStyleBackColor = $True 269 | $button2.Text = "Cancel" 270 | $button2.Location = New-Object System.Drawing.Point(129,472) 271 | $button2.Size = New-Object System.Drawing.Size(75,23) 272 | $button2.DataBindings.DefaultDataSourceUpdateMode = 0 273 | $button2.add_Click($handler_cancelButton_Click) 274 | 275 | $form.Controls.Add($button2) 276 | 277 | $label.Location = New-Object System.Drawing.Point(13,5) 278 | $label.Size = New-Object System.Drawing.Size(400,14) 279 | $Label.Font = 'Microsoft Sans Serif,8' 280 | $label.Text = 'Check apps that you wish to remove, uncheck apps that you wish to keep' 281 | 282 | $form.Controls.Add($label) 283 | 284 | $loadingLabel.Location = New-Object System.Drawing.Point(16,46) 285 | $loadingLabel.Size = New-Object System.Drawing.Size(300,418) 286 | $loadingLabel.Text = 'Loading apps...' 287 | $loadingLabel.BackColor = "White" 288 | $loadingLabel.Visible = $false 289 | 290 | $form.Controls.Add($loadingLabel) 291 | 292 | $onlyInstalledCheckBox.TabIndex = 6 293 | $onlyInstalledCheckBox.Location = New-Object System.Drawing.Point(230,474) 294 | $onlyInstalledCheckBox.Size = New-Object System.Drawing.Size(150,20) 295 | $onlyInstalledCheckBox.Text = 'Only show installed apps' 296 | $onlyInstalledCheckBox.add_CheckedChanged($load_Apps) 297 | 298 | $form.Controls.Add($onlyInstalledCheckBox) 299 | 300 | $checkUncheckCheckBox.TabIndex = 7 301 | $checkUncheckCheckBox.Location = New-Object System.Drawing.Point(16,22) 302 | $checkUncheckCheckBox.Size = New-Object System.Drawing.Size(150,20) 303 | $checkUncheckCheckBox.Text = 'Check/Uncheck all' 304 | $checkUncheckCheckBox.add_CheckedChanged($check_All) 305 | 306 | $form.Controls.Add($checkUncheckCheckBox) 307 | 308 | $selectionBox.FormattingEnabled = $True 309 | $selectionBox.DataBindings.DefaultDataSourceUpdateMode = 0 310 | $selectionBox.Name = "selectionBox" 311 | $selectionBox.Location = New-Object System.Drawing.Point(13,43) 312 | $selectionBox.Size = New-Object System.Drawing.Size(374,424) 313 | $selectionBox.TabIndex = 3 314 | $selectionBox.add_SelectedIndexChanged($selectionBox_SelectedIndexChanged) 315 | $selectionBox.add_Click($selectionBox_MouseDown) 316 | 317 | $form.Controls.Add($selectionBox) 318 | 319 | # Save the initial state of the form 320 | $initialFormWindowState = $form.WindowState 321 | 322 | # Load apps into selectionBox 323 | $form.add_Load($load_Apps) 324 | 325 | # Focus selectionBox when form opens 326 | $form.Add_Shown({$form.Activate(); $selectionBox.Focus()}) 327 | 328 | # Show the Form 329 | return $form.ShowDialog() 330 | } 331 | 332 | 333 | # Returns list of apps from the specified file, it trims the app names and removes any comments 334 | function ReadAppslistFromFile { 335 | param ( 336 | $appsFilePath 337 | ) 338 | 339 | $appsList = @() 340 | 341 | # Get list of apps from file at the path provided, and remove them one by one 342 | Foreach ($app in (Get-Content -Path $appsFilePath | Where-Object { $_ -notmatch '^#.*' -and $_ -notmatch '^\s*#39; } )) { 343 | # Remove any comments from the Appname 344 | if (-not ($app.IndexOf('#') -eq -1)) { 345 | $app = $app.Substring(0, $app.IndexOf('#')) 346 | } 347 | 348 | # Remove any spaces before and after the Appname 349 | $app = $app.Trim() 350 | 351 | $appString = $app.Trim('*') 352 | $appsList += $appString 353 | } 354 | 355 | return $appsList 356 | } 357 | 358 | 359 | # Removes apps specified during function call from all user accounts and from the OS image. 360 | function RemoveApps { 361 | param ( 362 | $appslist 363 | ) 364 | 365 | Foreach ($app in $appsList) { 366 | Write-Output "Attempting to remove $app..." 367 | 368 | if (($app -eq "Microsoft.OneDrive") -or ($app -eq "Microsoft.Edge")) { 369 | # Use winget to remove OneDrive and Edge 370 | if ($script:wingetInstalled -eq $false) { 371 | Write-Host "Error: WinGet is either not installed or is outdated, $app could not be removed" -ForegroundColor Red 372 | } 373 | else { 374 | # Uninstall app via winget 375 | Strip-Progress -ScriptBlock { winget uninstall --accept-source-agreements --disable-interactivity --id $app } | Tee-Object -Variable wingetOutput 376 | 377 | If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) { 378 | Write-Host "Unable to uninstall Microsoft Edge via Winget" -ForegroundColor Red 379 | Write-Output "" 380 | 381 | if ($( Read-Host -Prompt "Would you like to forcefully uninstall Edge? NOT RECOMMENDED! (y/n)" ) -eq 'y') { 382 | Write-Output "" 383 | ForceRemoveEdge 384 | } 385 | } 386 | } 387 | } 388 | else { 389 | # Use Remove-AppxPackage to remove all other apps 390 | $app = '*' + $app + '*' 391 | 392 | # Remove installed app for all existing users 393 | if ($WinVersion -ge 22000) { 394 | # Windows 11 build 22000 or later 395 | try { 396 | Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction Continue 397 | 398 | if ($DebugPreference -ne "SilentlyContinue") { 399 | Write-Host "Removed $app for all users" -ForegroundColor DarkGray 400 | } 401 | } 402 | catch { 403 | if ($DebugPreference -ne "SilentlyContinue") { 404 | Write-Host "Unable to remove $app for all users" -ForegroundColor Yellow 405 | Write-Host $psitem.Exception.StackTrace -ForegroundColor Gray 406 | } 407 | } 408 | } 409 | else { 410 | # Windows 10 411 | try { 412 | Get-AppxPackage -Name $app | Remove-AppxPackage -ErrorAction SilentlyContinue 413 | 414 | if ($DebugPreference -ne "SilentlyContinue") { 415 | Write-Host "Removed $app for current user" -ForegroundColor DarkGray 416 | } 417 | } 418 | catch { 419 | if ($DebugPreference -ne "SilentlyContinue") { 420 | Write-Host "Unable to remove $app for current user" -ForegroundColor Yellow 421 | Write-Host $psitem.Exception.StackTrace -ForegroundColor Gray 422 | } 423 | } 424 | 425 | try { 426 | Get-AppxPackage -Name $app -PackageTypeFilter Main, Bundle, Resource -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue 427 | 428 | if ($DebugPreference -ne "SilentlyContinue") { 429 | Write-Host "Removed $app for all users" -ForegroundColor DarkGray 430 | } 431 | } 432 | catch { 433 | if ($DebugPreference -ne "SilentlyContinue") { 434 | Write-Host "Unable to remove $app for all users" -ForegroundColor Yellow 435 | Write-Host $psitem.Exception.StackTrace -ForegroundColor Gray 436 | } 437 | } 438 | } 439 | 440 | # Remove provisioned app from OS image, so the app won't be installed for any new users 441 | try { 442 | Get-AppxProvisionedPackage -Online | Where-Object { $_.PackageName -like $app } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName } 443 | } 444 | catch { 445 | Write-Host "Unable to remove $app from windows image" -ForegroundColor Yellow 446 | Write-Host $psitem.Exception.StackTrace -ForegroundColor Gray 447 | } 448 | } 449 | } 450 | 451 | Write-Output "" 452 | } 453 | 454 | 455 | # Forcefully removes Microsoft Edge using it's uninstaller 456 | function ForceRemoveEdge { 457 | # Based on work from loadstring1 & ave9858 458 | Write-Output "> Forcefully uninstalling Microsoft Edge..." 459 | 460 | $regView = [Microsoft.Win32.RegistryView]::Registry32 461 | $hklm = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView) 462 | $hklm.CreateSubKey('SOFTWARE\Microsoft\EdgeUpdateDev').SetValue('AllowUninstall', '') 463 | 464 | # Create stub (Creating this somehow allows uninstalling edge) 465 | $edgeStub = "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" 466 | New-Item $edgeStub -ItemType Directory | Out-Null 467 | New-Item "$edgeStub\MicrosoftEdge.exe" | Out-Null 468 | 469 | # Remove edge 470 | $uninstallRegKey = $hklm.OpenSubKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge') 471 | if ($null -ne $uninstallRegKey) { 472 | Write-Output "Running uninstaller..." 473 | $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall' 474 | Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden -Wait 475 | 476 | Write-Output "Removing leftover files..." 477 | 478 | $edgePaths = @( 479 | "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk", 480 | "$env:APPDATA\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk", 481 | "$env:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Microsoft Edge.lnk", 482 | "$env:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Tombstones\Microsoft Edge.lnk", 483 | "$env:PUBLIC\Desktop\Microsoft Edge.lnk", 484 | "$env:USERPROFILE\Desktop\Microsoft Edge.lnk", 485 | "$edgeStub" 486 | ) 487 | 488 | foreach ($path in $edgePaths) { 489 | if (Test-Path -Path $path) { 490 | Remove-Item -Path $path -Force -Recurse -ErrorAction SilentlyContinue 491 | Write-Host " Removed $path" -ForegroundColor DarkGray 492 | } 493 | } 494 | 495 | Write-Output "Cleaning up registry..." 496 | 497 | # Remove ms edge from autostart 498 | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "MicrosoftEdgeAutoLaunch_A9F6DCE4ABADF4F51CF45CD7129E3C6C" /f *>$null 499 | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" /v "Microsoft Edge Update" /f *>$null 500 | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "MicrosoftEdgeAutoLaunch_A9F6DCE4ABADF4F51CF45CD7129E3C6C" /f *>$null 501 | reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "Microsoft Edge Update" /f *>$null 502 | 503 | Write-Output "Microsoft Edge was uninstalled" 504 | } 505 | else { 506 | Write-Output "" 507 | Write-Host "Error: Unable to forcefully uninstall Microsoft Edge, uninstaller could not be found" -ForegroundColor Red 508 | } 509 | 510 | Write-Output "" 511 | } 512 | 513 | 514 | # Execute provided command and strips progress spinners/bars from console output 515 | function Strip-Progress { 516 | param( 517 | [ScriptBlock]$ScriptBlock 518 | ) 519 | 520 | # Regex pattern to match spinner characters and progress bar patterns 521 | $progressPattern = 'Γû[Æê]|^\s+[-\\|/]\s+#39; 522 | 523 | # Corrected regex pattern for size formatting, ensuring proper capture groups are utilized 524 | $sizePattern = '(\d+(\.\d{1,2})?)\s+(B|KB|MB|GB|TB|PB) /\s+(\d+(\.\d{1,2})?)\s+(B|KB|MB|GB|TB|PB)' 525 | 526 | & $ScriptBlock 2>&1 | ForEach-Object { 527 | if ($_ -is [System.Management.Automation.ErrorRecord]) { 528 | "ERROR: $($_.Exception.Message)" 529 | } else { 530 | $line = $_ -replace $progressPattern, '' -replace $sizePattern, '' 531 | if (-not ([string]::IsNullOrWhiteSpace($line)) -and -not ($line.StartsWith(' '))) { 532 | $line 533 | } 534 | } 535 | } 536 | } 537 | 538 | 539 | # Import & execute regfile 540 | function RegImport { 541 | param ( 542 | $message, 543 | $path 544 | ) 545 | 546 | Write-Output $message 547 | 548 | if ($script:Params.ContainsKey("Sysprep")) { 549 | $defaultUserPath = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '#39;), '\Default\NTUSER.DAT' 550 | 551 | reg load "HKU\Default" $defaultUserPath | Out-Null 552 | reg import "$PSScriptRoot\Regfiles\Sysprep\$path" 553 | reg unload "HKU\Default" | Out-Null 554 | } 555 | elseif ($script:Params.ContainsKey("User")) { 556 | $userPath = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '#39;), "\$($script:Params.Item("User"))\NTUSER.DAT" 557 | 558 | reg load "HKU\Default" $userPath | Out-Null 559 | reg import "$PSScriptRoot\Regfiles\Sysprep\$path" 560 | reg unload "HKU\Default" | Out-Null 561 | 562 | } 563 | else { 564 | reg import "$PSScriptRoot\Regfiles\$path" 565 | } 566 | 567 | Write-Output "" 568 | } 569 | 570 | 571 | # Restart the Windows Explorer process 572 | function RestartExplorer { 573 | if ($script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("User")) { 574 | return 575 | } 576 | 577 | Write-Output "> Restarting Windows Explorer process to apply all changes... (This may cause some flickering)" 578 | 579 | if ($script:Params.ContainsKey("DisableMouseAcceleration")) { 580 | Write-Host "Warning: The Enhance Pointer Precision setting changes will only take effect after a reboot" -ForegroundColor Yellow 581 | } 582 | 583 | if ($script:Params.ContainsKey("DisableStickyKeys")) { 584 | Write-Host "Warning: The Sticky Keys setting changes will only take effect after a reboot" -ForegroundColor Yellow 585 | } 586 | 587 | if ($script:Params.ContainsKey("DisableAnimations")) { 588 | Write-Host "Warning: Animations will only be disabled after a reboot" -ForegroundColor Yellow 589 | } 590 | 591 | # Only restart if the powershell process matches the OS architecture. 592 | # Restarting explorer from a 32bit PowerShell window will fail on a 64bit OS 593 | if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) { 594 | Stop-Process -processName: Explorer -Force 595 | } 596 | else { 597 | Write-Warning "Unable to restart Windows Explorer process, please manually reboot your PC to apply all changes." 598 | } 599 | } 600 | 601 | 602 | # Replace the startmenu for all users, when using the default startmenuTemplate this clears all pinned apps 603 | # Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/ 604 | function ReplaceStartMenuForAllUsers { 605 | param ( 606 | $startMenuTemplate = "$PSScriptRoot/Assets/Start/start2.bin" 607 | ) 608 | 609 | Write-Output "> Removing all pinned apps from the start menu for all users..." 610 | 611 | # Check if template bin file exists, return early if it doesn't 612 | if (-not (Test-Path $startMenuTemplate)) { 613 | Write-Host "Error: Unable to clear start menu, start2.bin file missing from script folder" -ForegroundColor Red 614 | Write-Output "" 615 | return 616 | } 617 | 618 | # Get path to start menu file for all users 619 | $userPathString = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '#39;), "\*\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" 620 | $usersStartMenuPaths = get-childitem -path $userPathString 621 | 622 | # Go through all users and replace the start menu file 623 | ForEach ($startMenuPath in $usersStartMenuPaths) { 624 | ReplaceStartMenu $startMenuTemplate "$($startMenuPath.Fullname)\start2.bin" 625 | } 626 | 627 | # Also replace the start menu file for the default user profile 628 | $defaultStartMenuPath = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '#39;), '\Default\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState' 629 | 630 | # Create folder if it doesn't exist 631 | if (-not (Test-Path $defaultStartMenuPath)) { 632 | new-item $defaultStartMenuPath -ItemType Directory -Force | Out-Null 633 | Write-Output "Created LocalState folder for default user profile" 634 | } 635 | 636 | # Copy template to default profile 637 | Copy-Item -Path $startMenuTemplate -Destination $defaultStartMenuPath -Force 638 | Write-Output "Replaced start menu for the default user profile" 639 | Write-Output "" 640 | } 641 | 642 | 643 | # Replace the startmenu for all users, when using the default startmenuTemplate this clears all pinned apps 644 | # Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/ 645 | function ReplaceStartMenu { 646 | param ( 647 | $startMenuTemplate = "$PSScriptRoot/Assets/Start/start2.bin", 648 | $startMenuBinFile = "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin" 649 | ) 650 | 651 | # Change path to correct user if a user was specified 652 | if ($script:Params.ContainsKey("User")) { 653 | $startMenuBinFile = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '#39;), "\$(GetUserName)\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin" 654 | } 655 | 656 | # Check if template bin file exists, return early if it doesn't 657 | if (-not (Test-Path $startMenuTemplate)) { 658 | Write-Host "Error: Unable to replace start menu, template file not found" -ForegroundColor Red 659 | return 660 | } 661 | 662 | if ([IO.Path]::GetExtension($startMenuTemplate) -ne ".bin" ) { 663 | Write-Host "Error: Unable to replace start menu, template file is not a valid .bin file" -ForegroundColor Red 664 | return 665 | } 666 | 667 | # Check if bin file exists, return early if it doesn't 668 | if (-not (Test-Path $startMenuBinFile)) { 669 | Write-Host "Error: Unable to replace start menu for user $(GetUserName), original start2.bin file not found" -ForegroundColor Red 670 | return 671 | } 672 | 673 | $backupBinFile = $startMenuBinFile + ".bak" 674 | 675 | # Backup current start menu file 676 | Move-Item -Path $startMenuBinFile -Destination $backupBinFile -Force 677 | 678 | # Copy template file 679 | Copy-Item -Path $startMenuTemplate -Destination $startMenuBinFile -Force 680 | 681 | Write-Output "Replaced start menu for user $(GetUserName)" 682 | } 683 | 684 | 685 | # Add parameter to script and write to file 686 | function AddParameter { 687 | param ( 688 | $parameterName, 689 | $message 690 | ) 691 | 692 | # Add key if it doesn't already exist 693 | if (-not $script:Params.ContainsKey($parameterName)) { 694 | $script:Params.Add($parameterName, $true) 695 | } 696 | 697 | # Create or clear file that stores last used settings 698 | if (-not (Test-Path "$PSScriptRoot/SavedSettings")) { 699 | $null = New-Item "$PSScriptRoot/SavedSettings" 700 | } 701 | elseif ($script:FirstSelection) { 702 | $null = Clear-Content "$PSScriptRoot/SavedSettings" 703 | } 704 | 705 | $script:FirstSelection = $false 706 | 707 | # Create entry and add it to the file 708 | $entry = "$parameterName#- $message" 709 | Add-Content -Path "$PSScriptRoot/SavedSettings" -Value $entry 710 | } 711 | 712 | 713 | function PrintHeader { 714 | param ( 715 | $title 716 | ) 717 | 718 | $fullTitle = " Win11Debloat Script - $title" 719 | 720 | if ($script:Params.ContainsKey("Sysprep")) { 721 | $fullTitle = "$fullTitle (Sysprep mode)" 722 | } 723 | else { 724 | $fullTitle = "$fullTitle (User: $(GetUserName))" 725 | } 726 | 727 | Clear-Host 728 | Write-Output "-------------------------------------------------------------------------------------------" 729 | Write-Output $fullTitle 730 | Write-Output "-------------------------------------------------------------------------------------------" 731 | } 732 | 733 | 734 | function PrintFromFile { 735 | param ( 736 | $path, 737 | $title 738 | ) 739 | 740 | Clear-Host 741 | 742 | PrintHeader $title 743 | 744 | # Get & print script menu from file 745 | Foreach ($line in (Get-Content -Path $path )) { 746 | Write-Output $line 747 | } 748 | } 749 | 750 | 751 | function AwaitKeyToExit { 752 | # Suppress prompt if Silent parameter was passed 753 | if (-not $Silent) { 754 | Write-Output "" 755 | Write-Output "Press any key to exit..." 756 | $null = [System.Console]::ReadKey() 757 | } 758 | 759 | Stop-Transcript 760 | Exit 761 | } 762 | 763 | 764 | function GetUserName { 765 | if ($script:Params.ContainsKey("User")) { 766 | return $script:Params.Item("User") 767 | } 768 | 769 | return $env:USERNAME 770 | } 771 | 772 | 773 | function CreateSystemRestorePoint { 774 | Write-Output "> Attempting to create a system restore point..." 775 | 776 | $SysRestore = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name "RPSessionInterval" 777 | 778 | if ($SysRestore.RPSessionInterval -eq 0) { 779 | if ($Silent -or $( Read-Host -Prompt "System restore is disabled, would you like to enable it and create a restore point? (y/n)") -eq 'y') { 780 | try { 781 | Enable-ComputerRestore -Drive "$env:SystemDrive" 782 | } catch { 783 | Write-Host "Error: Failed to enable System Restore: $_" -ForegroundColor Red 784 | Write-Output "" 785 | return 786 | } 787 | } else { 788 | Write-Output "" 789 | return 790 | } 791 | } 792 | 793 | # Find existing restore points that are less than 24 hours old 794 | try { 795 | $recentRestorePoints = Get-ComputerRestorePoint | Where-Object { (Get-Date) - [System.Management.ManagementDateTimeConverter]::ToDateTime($_.CreationTime) -le (New-TimeSpan -Hours 24) } 796 | } catch { 797 | Write-Host "Error: Unable to retrieve existing restore points: $_" -ForegroundColor Red 798 | Write-Output "" 799 | return 800 | } 801 | 802 | if ($recentRestorePoints.Count -eq 0) { 803 | try { 804 | Checkpoint-Computer -Description "Restore point created by Win11Debloat" -RestorePointType "MODIFY_SETTINGS" 805 | Write-Output "System restore point created successfully" 806 | } catch { 807 | Write-Host "Error: Unable to create restore point: $_" -ForegroundColor Red 808 | } 809 | } else { 810 | Write-Host "A recent restore point already exists, no new restore point was created." -ForegroundColor Yellow 811 | } 812 | 813 | Write-Output "" 814 | } 815 | 816 | 817 | function DisplayCustomModeOptions { 818 | # Get current Windows build version to compare against features 819 | $WinVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' CurrentBuild 820 | 821 | PrintHeader 'Custom Mode' 822 | 823 | AddParameter 'CreateRestorePoint' 'Create a system restore point' 824 | 825 | # Show options for removing apps, only continue on valid input 826 | Do { 827 | Write-Host "Options:" -ForegroundColor Yellow 828 | Write-Host " (n) Don't remove any apps" -ForegroundColor Yellow 829 | Write-Host " (1) Only remove the default selection of bloatware apps from 'Appslist.txt'" -ForegroundColor Yellow 830 | Write-Host " (2) Remove default selection of bloatware apps, as well as mail & calendar apps, developer apps and gaming apps" -ForegroundColor Yellow 831 | Write-Host " (3) Manually select which apps to remove" -ForegroundColor Yellow 832 | $RemoveAppsInput = Read-Host "Do you want to remove any apps? Apps will be removed for all users (n/1/2/3)" 833 | 834 | # Show app selection form if user entered option 3 835 | if ($RemoveAppsInput -eq '3') { 836 | $result = ShowAppSelectionForm 837 | 838 | if ($result -ne [System.Windows.Forms.DialogResult]::OK) { 839 | # User cancelled or closed app selection, show error and change RemoveAppsInput so the menu will be shown again 840 | Write-Output "" 841 | Write-Host "Cancelled application selection, please try again" -ForegroundColor Red 842 | 843 | $RemoveAppsInput = 'c' 844 | } 845 | 846 | Write-Output "" 847 | } 848 | } 849 | while ($RemoveAppsInput -ne 'n' -and $RemoveAppsInput -ne '0' -and $RemoveAppsInput -ne '1' -and $RemoveAppsInput -ne '2' -and $RemoveAppsInput -ne '3') 850 | 851 | # Select correct option based on user input 852 | switch ($RemoveAppsInput) { 853 | '1' { 854 | AddParameter 'RemoveApps' 'Remove default selection of bloatware apps' 855 | } 856 | '2' { 857 | AddParameter 'RemoveApps' 'Remove default selection of bloatware apps' 858 | AddParameter 'RemoveCommApps' 'Remove the Mail, Calendar, and People apps' 859 | AddParameter 'RemoveW11Outlook' 'Remove the new Outlook for Windows app' 860 | AddParameter 'RemoveDevApps' 'Remove developer-related apps' 861 | AddParameter 'RemoveGamingApps' 'Remove the Xbox App and Xbox Gamebar' 862 | AddParameter 'DisableDVR' 'Disable Xbox game/screen recording' 863 | } 864 | '3' { 865 | Write-Output "You have selected $($script:SelectedApps.Count) apps for removal" 866 | 867 | AddParameter 'RemoveAppsCustom' "Remove $($script:SelectedApps.Count) apps:" 868 | 869 | Write-Output "" 870 | 871 | if ($( Read-Host -Prompt "Disable Xbox game/screen recording? This also stops gaming overlay popups (y/n)" ) -eq 'y') { 872 | AddParameter 'DisableDVR' 'Disable Xbox game/screen recording' 873 | } 874 | } 875 | } 876 | 877 | Write-Output "" 878 | 879 | if ($( Read-Host -Prompt "Disable telemetry, diagnostic data, activity history, app-launch tracking and targeted ads? (y/n)" ) -eq 'y') { 880 | AddParameter 'DisableTelemetry' 'Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads' 881 | } 882 | 883 | Write-Output "" 884 | 885 | if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer and lockscreen? (y/n)" ) -eq 'y') { 886 | AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer' 887 | AddParameter 'DisableSettings365Ads' 'Disable Microsoft 365 ads in Settings Home' 888 | AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen' 889 | } 890 | 891 | Write-Output "" 892 | 893 | if ($( Read-Host -Prompt "Disable & remove Bing web search, Bing AI and Cortana from Windows search? (y/n)" ) -eq 'y') { 894 | AddParameter 'DisableBing' 'Disable & remove Bing web search, Bing AI and Cortana from Windows search' 895 | } 896 | 897 | # Only show this option for Windows 11 users running build 22621 or later 898 | if ($WinVersion -ge 22621) { 899 | Write-Output "" 900 | 901 | if ($( Read-Host -Prompt "Disable & remove Microsoft Copilot and Windows Recall snapshots? This applies to all users (y/n)" ) -eq 'y') { 902 | AddParameter 'DisableCopilot' 'Disable and remove Microsoft Copilot' 903 | AddParameter 'DisableRecall' 'Disable and remove Windows Recall snapshots' 904 | } 905 | } 906 | 907 | Write-Output "" 908 | 909 | if ($( Read-Host -Prompt "Disable Windows Spotlight background on desktop? (y/n)" ) -eq 'y') { 910 | AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.' 911 | } 912 | 913 | Write-Output "" 914 | 915 | if ($( Read-Host -Prompt "Enable dark mode for system and apps? (y/n)" ) -eq 'y') { 916 | AddParameter 'EnableDarkMode' 'Enable dark mode for system and apps' 917 | } 918 | 919 | Write-Output "" 920 | 921 | if ($( Read-Host -Prompt "Disable transparency, animations and visual effects? (y/n)" ) -eq 'y') { 922 | AddParameter 'DisableTransparency' 'Disable transparency effects' 923 | AddParameter 'DisableAnimations' 'Disable animations and visual effects' 924 | } 925 | 926 | # Only show this option for Windows 11 users running build 22000 or later 927 | if ($WinVersion -ge 22000) { 928 | Write-Output "" 929 | 930 | if ($( Read-Host -Prompt "Restore the old Windows 10 style context menu? (y/n)" ) -eq 'y') { 931 | AddParameter 'RevertContextMenu' 'Restore the old Windows 10 style context menu' 932 | } 933 | } 934 | 935 | Write-Output "" 936 | 937 | if ($( Read-Host -Prompt "Turn off Enhance Pointer Precision, also known as mouse acceleration? (y/n)" ) -eq 'y') { 938 | AddParameter 'DisableMouseAcceleration' 'Turn off Enhance Pointer Precision (mouse acceleration)' 939 | } 940 | 941 | # Only show this option for Windows 11 users running build 26100 or later 942 | if ($WinVersion -ge 26100) { 943 | Write-Output "" 944 | 945 | if ($( Read-Host -Prompt "Disable the Sticky Keys keyboard shortcut? (y/n)" ) -eq 'y') { 946 | AddParameter 'DisableStickyKeys' 'Disable the Sticky Keys keyboard shortcut' 947 | } 948 | } 949 | 950 | Write-Output "" 951 | 952 | if ($( Read-Host -Prompt "Disable Fast Start-up? This applies to all users (y/n)" ) -eq 'y') { 953 | AddParameter 'DisableFastStartup' 'Disable Fast Start-up' 954 | } 955 | 956 | # Only show option for disabling context menu items for Windows 10 users or if the user opted to restore the Windows 10 context menu 957 | if ((get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'") -or $script:Params.ContainsKey('RevertContextMenu')) { 958 | Write-Output "" 959 | 960 | if ($( Read-Host -Prompt "Do you want to disable any context menu options? (y/n)" ) -eq 'y') { 961 | Write-Output "" 962 | 963 | if ($( Read-Host -Prompt " Hide the 'Include in library' option in the context menu? (y/n)" ) -eq 'y') { 964 | AddParameter 'HideIncludeInLibrary' "Hide the 'Include in library' option in the context menu" 965 | } 966 | 967 | Write-Output "" 968 | 969 | if ($( Read-Host -Prompt " Hide the 'Give access to' option in the context menu? (y/n)" ) -eq 'y') { 970 | AddParameter 'HideGiveAccessTo' "Hide the 'Give access to' option in the context menu" 971 | } 972 | 973 | Write-Output "" 974 | 975 | if ($( Read-Host -Prompt " Hide the 'Share' option in the context menu? (y/n)" ) -eq 'y') { 976 | AddParameter 'HideShare' "Hide the 'Share' option in the context menu" 977 | } 978 | } 979 | } 980 | 981 | # Only show this option for Windows 11 users running build 22621 or later 982 | if ($WinVersion -ge 22621) { 983 | Write-Output "" 984 | 985 | if ($( Read-Host -Prompt "Do you want to make any changes to the start menu? (y/n)" ) -eq 'y') { 986 | Write-Output "" 987 | 988 | if ($script:Params.ContainsKey("Sysprep")) { 989 | if ($( Read-Host -Prompt "Remove all pinned apps from the start menu for all existing and new users? (y/n)" ) -eq 'y') { 990 | AddParameter 'ClearStartAllUsers' 'Remove all pinned apps from the start menu for existing and new users' 991 | } 992 | } 993 | else { 994 | Do { 995 | Write-Host " Options:" -ForegroundColor Yellow 996 | Write-Host " (n) Don't remove any pinned apps from the start menu" -ForegroundColor Yellow 997 | Write-Host " (1) Remove all pinned apps from the start menu for this user only ($(GetUserName))" -ForegroundColor Yellow 998 | Write-Host " (2) Remove all pinned apps from the start menu for all existing and new users" -ForegroundColor Yellow 999 | $ClearStartInput = Read-Host " Remove all pinned apps from the start menu? (n/1/2)" 1000 | } 1001 | while ($ClearStartInput -ne 'n' -and $ClearStartInput -ne '0' -and $ClearStartInput -ne '1' -and $ClearStartInput -ne '2') 1002 | 1003 | # Select correct option based on user input 1004 | switch ($ClearStartInput) { 1005 | '1' { 1006 | AddParameter 'ClearStart' "Remove all pinned apps from the start menu for this user only" 1007 | } 1008 | '2' { 1009 | AddParameter 'ClearStartAllUsers' "Remove all pinned apps from the start menu for all existing and new users" 1010 | } 1011 | } 1012 | } 1013 | 1014 | Write-Output "" 1015 | 1016 | if ($( Read-Host -Prompt " Disable & hide the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') { 1017 | AddParameter 'DisableStartRecommended' 'Disable & hide the recommended section in the start menu.' 1018 | } 1019 | 1020 | Write-Output "" 1021 | 1022 | if ($( Read-Host -Prompt " Disable the Phone Link mobile devices integration in the start menu? (y/n)" ) -eq 'y') { 1023 | AddParameter 'DisableStartPhoneLink' 'Disable the Phone Link mobile devices integration in the start menu.' 1024 | } 1025 | } 1026 | } 1027 | 1028 | Write-Output "" 1029 | 1030 | if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar and related services? (y/n)" ) -eq 'y') { 1031 | # Only show these specific options for Windows 11 users running build 22000 or later 1032 | if ($WinVersion -ge 22000) { 1033 | Write-Output "" 1034 | 1035 | if ($( Read-Host -Prompt " Align taskbar buttons to the left side? (y/n)" ) -eq 'y') { 1036 | AddParameter 'TaskbarAlignLeft' 'Align taskbar icons to the left' 1037 | } 1038 | 1039 | # Show options for search icon on taskbar, only continue on valid input 1040 | Do { 1041 | Write-Output "" 1042 | Write-Host " Options:" -ForegroundColor Yellow 1043 | Write-Host " (n) No change" -ForegroundColor Yellow 1044 | Write-Host " (1) Hide search icon from the taskbar" -ForegroundColor Yellow 1045 | Write-Host " (2) Show search icon on the taskbar" -ForegroundColor Yellow 1046 | Write-Host " (3) Show search icon with label on the taskbar" -ForegroundColor Yellow 1047 | Write-Host " (4) Show search box on the taskbar" -ForegroundColor Yellow 1048 | $TbSearchInput = Read-Host " Hide or change the search icon on the taskbar? (n/1/2/3/4)" 1049 | } 1050 | while ($TbSearchInput -ne 'n' -and $TbSearchInput -ne '0' -and $TbSearchInput -ne '1' -and $TbSearchInput -ne '2' -and $TbSearchInput -ne '3' -and $TbSearchInput -ne '4') 1051 | 1052 | # Select correct taskbar search option based on user input 1053 | switch ($TbSearchInput) { 1054 | '1' { 1055 | AddParameter 'HideSearchTb' 'Hide search icon from the taskbar' 1056 | } 1057 | '2' { 1058 | AddParameter 'ShowSearchIconTb' 'Show search icon on the taskbar' 1059 | } 1060 | '3' { 1061 | AddParameter 'ShowSearchLabelTb' 'Show search icon with label on the taskbar' 1062 | } 1063 | '4' { 1064 | AddParameter 'ShowSearchBoxTb' 'Show search box on the taskbar' 1065 | } 1066 | } 1067 | 1068 | Write-Output "" 1069 | 1070 | if ($( Read-Host -Prompt " Hide the taskview button from the taskbar? (y/n)" ) -eq 'y') { 1071 | AddParameter 'HideTaskview' 'Hide the taskview button from the taskbar' 1072 | } 1073 | } 1074 | 1075 | Write-Output "" 1076 | 1077 | if ($( Read-Host -Prompt " Disable the widgets service and hide the icon from the taskbar? (y/n)" ) -eq 'y') { 1078 | AddParameter 'DisableWidgets' 'Disable the widget service & hide the widget (news and interests) icon from the taskbar' 1079 | } 1080 | 1081 | # Only show this options for Windows users running build 22621 or earlier 1082 | if ($WinVersion -le 22621) { 1083 | Write-Output "" 1084 | 1085 | if ($( Read-Host -Prompt " Hide the chat (meet now) icon from the taskbar? (y/n)" ) -eq 'y') { 1086 | AddParameter 'HideChat' 'Hide the chat (meet now) icon from the taskbar' 1087 | } 1088 | } 1089 | 1090 | # Only show this options for Windows users running build 22631 or later 1091 | if ($WinVersion -ge 22631) { 1092 | Write-Output "" 1093 | 1094 | if ($( Read-Host -Prompt " Enable the 'End Task' option in the taskbar right click menu? (y/n)" ) -eq 'y') { 1095 | AddParameter 'EnableEndTask' "Enable the 'End Task' option in the taskbar right click menu" 1096 | } 1097 | } 1098 | } 1099 | 1100 | Write-Output "" 1101 | 1102 | if ($( Read-Host -Prompt "Do you want to make any changes to File Explorer? (y/n)" ) -eq 'y') { 1103 | # Show options for changing the File Explorer default location 1104 | Do { 1105 | Write-Output "" 1106 | Write-Host " Options:" -ForegroundColor Yellow 1107 | Write-Host " (n) No change" -ForegroundColor Yellow 1108 | Write-Host " (1) Open File Explorer to 'Home'" -ForegroundColor Yellow 1109 | Write-Host " (2) Open File Explorer to 'This PC'" -ForegroundColor Yellow 1110 | Write-Host " (3) Open File Explorer to 'Downloads'" -ForegroundColor Yellow 1111 | Write-Host " (4) Open File Explorer to 'OneDrive'" -ForegroundColor Yellow 1112 | $ExplSearchInput = Read-Host " Change the default location that File Explorer opens to? (n/1/2/3/4)" 1113 | } 1114 | while ($ExplSearchInput -ne 'n' -and $ExplSearchInput -ne '0' -and $ExplSearchInput -ne '1' -and $ExplSearchInput -ne '2' -and $ExplSearchInput -ne '3' -and $ExplSearchInput -ne '4') 1115 | 1116 | # Select correct taskbar search option based on user input 1117 | switch ($ExplSearchInput) { 1118 | '1' { 1119 | AddParameter 'ExplorerToHome' "Change the default location that File Explorer opens to 'Home'" 1120 | } 1121 | '2' { 1122 | AddParameter 'ExplorerToThisPC' "Change the default location that File Explorer opens to 'This PC'" 1123 | } 1124 | '3' { 1125 | AddParameter 'ExplorerToDownloads' "Change the default location that File Explorer opens to 'Downloads'" 1126 | } 1127 | '4' { 1128 | AddParameter 'ExplorerToOneDrive' "Change the default location that File Explorer opens to 'OneDrive'" 1129 | } 1130 | } 1131 | 1132 | Write-Output "" 1133 | 1134 | if ($( Read-Host -Prompt " Show hidden files, folders and drives? (y/n)" ) -eq 'y') { 1135 | AddParameter 'ShowHiddenFolders' 'Show hidden files, folders and drives' 1136 | } 1137 | 1138 | Write-Output "" 1139 | 1140 | if ($( Read-Host -Prompt " Show file extensions for known file types? (y/n)" ) -eq 'y') { 1141 | AddParameter 'ShowKnownFileExt' 'Show file extensions for known file types' 1142 | } 1143 | 1144 | # Only show this option for Windows 11 users running build 22000 or later 1145 | if ($WinVersion -ge 22000) { 1146 | Write-Output "" 1147 | 1148 | if ($( Read-Host -Prompt " Hide the Home section from the File Explorer sidepanel? (y/n)" ) -eq 'y') { 1149 | AddParameter 'HideHome' 'Hide the Home section from the File Explorer sidepanel' 1150 | } 1151 | 1152 | Write-Output "" 1153 | 1154 | if ($( Read-Host -Prompt " Hide the Gallery section from the File Explorer sidepanel? (y/n)" ) -eq 'y') { 1155 | AddParameter 'HideGallery' 'Hide the Gallery section from the File Explorer sidepanel' 1156 | } 1157 | } 1158 | 1159 | Write-Output "" 1160 | 1161 | if ($( Read-Host -Prompt " Hide duplicate removable drive entries from the File Explorer sidepanel so they only show under This PC? (y/n)" ) -eq 'y') { 1162 | AddParameter 'HideDupliDrive' 'Hide duplicate removable drive entries from the File Explorer sidepanel' 1163 | } 1164 | 1165 | # Only show option for disabling these specific folders for Windows 10 users 1166 | if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'") { 1167 | Write-Output "" 1168 | 1169 | if ($( Read-Host -Prompt "Do you want to hide any folders from the File Explorer sidepanel? (y/n)" ) -eq 'y') { 1170 | Write-Output "" 1171 | 1172 | if ($( Read-Host -Prompt " Hide the OneDrive folder from the File Explorer sidepanel? (y/n)" ) -eq 'y') { 1173 | AddParameter 'HideOnedrive' 'Hide the OneDrive folder in the File Explorer sidepanel' 1174 | } 1175 | 1176 | Write-Output "" 1177 | 1178 | if ($( Read-Host -Prompt " Hide the 3D objects folder from the File Explorer sidepanel? (y/n)" ) -eq 'y') { 1179 | AddParameter 'Hide3dObjects' "Hide the 3D objects folder under 'This pc' in File Explorer" 1180 | } 1181 | 1182 | Write-Output "" 1183 | 1184 | if ($( Read-Host -Prompt " Hide the music folder from the File Explorer sidepanel? (y/n)" ) -eq 'y') { 1185 | AddParameter 'HideMusic' "Hide the music folder under 'This pc' in File Explorer" 1186 | } 1187 | } 1188 | } 1189 | } 1190 | 1191 | # Suppress prompt if Silent parameter was passed 1192 | if (-not $Silent) { 1193 | Write-Output "" 1194 | Write-Output "" 1195 | Write-Output "" 1196 | Write-Output "Press enter to confirm your choices and execute the script or press CTRL+C to quit..." 1197 | Read-Host | Out-Null 1198 | } 1199 | 1200 | PrintHeader 'Custom Mode' 1201 | } 1202 | 1203 | 1204 | 1205 | ################################################################################################################## 1206 | # # 1207 | # SCRIPT START # 1208 | # # 1209 | ################################################################################################################## 1210 | 1211 | 1212 | 1213 | # Check if winget is installed & if it is, check if the version is at least v1.4 1214 | if ((Get-AppxPackage -Name "*Microsoft.DesktopAppInstaller*") -and ([int](((winget -v) -replace 'v','').split('.')[0..1] -join '') -gt 14)) { 1215 | $script:wingetInstalled = $true 1216 | } 1217 | else { 1218 | $script:wingetInstalled = $false 1219 | 1220 | # Show warning that requires user confirmation, Suppress confirmation if Silent parameter was passed 1221 | if (-not $Silent) { 1222 | Write-Warning "Winget is not installed or outdated. This may prevent Win11Debloat from removing certain apps." 1223 | Write-Output "" 1224 | Write-Output "Press any key to continue anyway..." 1225 | $null = [System.Console]::ReadKey() 1226 | } 1227 | } 1228 | 1229 | # Get current Windows build version to compare against features 1230 | $WinVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' CurrentBuild 1231 | 1232 | $script:Params = $PSBoundParameters 1233 | $script:FirstSelection = $true 1234 | $SPParams = 'WhatIf', 'Confirm', 'Verbose', 'Silent', 'Sysprep', 'Debug', 'User', 'CreateRestorePoint', 'LogPath' 1235 | $SPParamCount = 0 1236 | 1237 | # Count how many SPParams exist within Params 1238 | # This is later used to check if any options were selected 1239 | foreach ($Param in $SPParams) { 1240 | if ($script:Params.ContainsKey($Param)) { 1241 | $SPParamCount++ 1242 | } 1243 | } 1244 | 1245 | # Hide progress bars for app removal, as they block Win11Debloat's output 1246 | if (-not ($script:Params.ContainsKey("Verbose"))) { 1247 | $ProgressPreference = 'SilentlyContinue' 1248 | } 1249 | else { 1250 | Write-Host "Verbose mode is enabled" 1251 | Write-Output "" 1252 | Write-Output "Press any key to continue..." 1253 | $null = [System.Console]::ReadKey() 1254 | 1255 | $ProgressPreference = 'Continue' 1256 | } 1257 | 1258 | # Make sure all requirements for Sysprep are met, if Sysprep is enabled 1259 | if ($script:Params.ContainsKey("Sysprep")) { 1260 | $defaultUserPath = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '#39;), '\Default\NTUSER.DAT' 1261 | 1262 | # Exit script if default user directory or NTUSER.DAT file cannot be found 1263 | if (-not (Test-Path "$defaultUserPath")) { 1264 | Write-Host "Error: Unable to start Win11Debloat in Sysprep mode, cannot find default user folder at '$defaultUserPath'" -ForegroundColor Red 1265 | AwaitKeyToExit 1266 | } 1267 | # Exit script if run in Sysprep mode on Windows 10 1268 | if ($WinVersion -lt 22000) { 1269 | Write-Host "Error: Win11Debloat Sysprep mode is not supported on Windows 10" -ForegroundColor Red 1270 | AwaitKeyToExit 1271 | } 1272 | } 1273 | 1274 | # Make sure all requirements for User mode are met, if User is specified 1275 | if ($script:Params.ContainsKey("User")) { 1276 | $userPath = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '#39;), "\$($script:Params.Item("User"))\NTUSER.DAT" 1277 | 1278 | # Exit script if user directory or NTUSER.DAT file cannot be found 1279 | if (-not (Test-Path "$userPath")) { 1280 | Write-Host "Error: Unable to run Win11Debloat for user $($script:Params.Item("User")), cannot find user data at '$userPath'" -ForegroundColor Red 1281 | AwaitKeyToExit 1282 | } 1283 | } 1284 | 1285 | # Remove SavedSettings file if it exists and is empty 1286 | if ((Test-Path "$PSScriptRoot/SavedSettings") -and ([String]::IsNullOrWhiteSpace((Get-content "$PSScriptRoot/SavedSettings")))) { 1287 | Remove-Item -Path "$PSScriptRoot/SavedSettings" -recurse 1288 | } 1289 | 1290 | # Only run the app selection form if the 'RunAppsListGenerator' parameter was passed to the script 1291 | if ($RunAppConfigurator -or $RunAppsListGenerator) { 1292 | PrintHeader "Custom Apps List Generator" 1293 | 1294 | $result = ShowAppSelectionForm 1295 | 1296 | # Show different message based on whether the app selection was saved or cancelled 1297 | if ($result -ne [System.Windows.Forms.DialogResult]::OK) { 1298 | Write-Host "Application selection window was closed without saving." -ForegroundColor Red 1299 | } 1300 | else { 1301 | Write-Output "Your app selection was saved to the 'CustomAppsList' file, found at:" 1302 | Write-Host "$PSScriptRoot" -ForegroundColor Yellow 1303 | } 1304 | 1305 | AwaitKeyToExit 1306 | } 1307 | 1308 | # Change script execution based on provided parameters or user input 1309 | if ((-not $script:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunSavedSettings -or ($SPParamCount -eq $script:Params.Count)) { 1310 | if ($RunDefaults -or $RunWin11Defaults) { 1311 | $Mode = '1' 1312 | } 1313 | elseif ($RunSavedSettings) { 1314 | if (-not (Test-Path "$PSScriptRoot/SavedSettings")) { 1315 | PrintHeader 'Custom Mode' 1316 | Write-Host "Error: No saved settings found, no changes were made" -ForegroundColor Red 1317 | AwaitKeyToExit 1318 | } 1319 | 1320 | $Mode = '4' 1321 | } 1322 | else { 1323 | # Show menu and wait for user input, loops until valid input is provided 1324 | Do { 1325 | $ModeSelectionMessage = "Please select an option (1/2/3/0)" 1326 | 1327 | PrintHeader 'Menu' 1328 | 1329 | Write-Output "(1) Default mode: Quickly apply the recommended changes" 1330 | Write-Output "(2) Custom mode: Manually select what changes to make" 1331 | Write-Output "(3) App removal mode: Select & remove apps, without making other changes" 1332 | 1333 | # Only show this option if SavedSettings file exists 1334 | if (Test-Path "$PSScriptRoot/SavedSettings") { 1335 | Write-Output "(4) Apply saved custom settings from last time" 1336 | 1337 | $ModeSelectionMessage = "Please select an option (1/2/3/4/0)" 1338 | } 1339 | 1340 | Write-Output "" 1341 | Write-Output "(0) Show more information" 1342 | Write-Output "" 1343 | Write-Output "" 1344 | 1345 | $Mode = Read-Host $ModeSelectionMessage 1346 | 1347 | if ($Mode -eq '0') { 1348 | # Print information screen from file 1349 | PrintFromFile "$PSScriptRoot/Assets/Menus/Info" "Information" 1350 | 1351 | Write-Output "Press any key to go back..." 1352 | $null = [System.Console]::ReadKey() 1353 | } 1354 | elseif (($Mode -eq '4') -and -not (Test-Path "$PSScriptRoot/SavedSettings")) { 1355 | $Mode = $null 1356 | } 1357 | } 1358 | while ($Mode -ne '1' -and $Mode -ne '2' -and $Mode -ne '3' -and $Mode -ne '4') 1359 | } 1360 | 1361 | # Add execution parameters based on the mode 1362 | switch ($Mode) { 1363 | # Default mode, loads defaults after confirmation 1364 | '1' { 1365 | # Show the default settings with confirmation, unless Silent parameter was passed 1366 | if (-not $Silent) { 1367 | PrintFromFile "$PSScriptRoot/Assets/Menus/DefaultSettings" "Default Mode" 1368 | 1369 | Write-Output "Press enter to execute the script or press CTRL+C to quit..." 1370 | Read-Host | Out-Null 1371 | } 1372 | 1373 | $DefaultParameterNames = 'CreateRestorePoint','RemoveApps','DisableTelemetry','DisableBing','DisableLockscreenTips','DisableSuggestions','ShowKnownFileExt','DisableWidgets','HideChat','DisableCopilot','DisableFastStartup' 1374 | 1375 | PrintHeader 'Default Mode' 1376 | 1377 | # Add default parameters, if they don't already exist 1378 | foreach ($ParameterName in $DefaultParameterNames) { 1379 | if (-not $script:Params.ContainsKey($ParameterName)) { 1380 | $script:Params.Add($ParameterName, $true) 1381 | } 1382 | } 1383 | 1384 | # Only add this option for Windows 10 users, if it doesn't already exist 1385 | if ((get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'") -and (-not $script:Params.ContainsKey('Hide3dObjects'))) { 1386 | $script:Params.Add('Hide3dObjects', $Hide3dObjects) 1387 | } 1388 | } 1389 | 1390 | # Custom mode, show & add options based on user input 1391 | '2' { 1392 | DisplayCustomModeOptions 1393 | } 1394 | 1395 | # App removal, remove apps based on user selection 1396 | '3' { 1397 | PrintHeader "App Removal" 1398 | 1399 | $result = ShowAppSelectionForm 1400 | 1401 | if ($result -eq [System.Windows.Forms.DialogResult]::OK) { 1402 | Write-Output "You have selected $($script:SelectedApps.Count) apps for removal" 1403 | AddParameter 'RemoveAppsCustom' "Remove $($script:SelectedApps.Count) apps:" 1404 | 1405 | # Suppress prompt if Silent parameter was passed 1406 | if (-not $Silent) { 1407 | Write-Output "" 1408 | Write-Output "" 1409 | Write-Output "Press enter to remove the selected apps or press CTRL+C to quit..." 1410 | Read-Host | Out-Null 1411 | PrintHeader "App Removal" 1412 | } 1413 | } 1414 | else { 1415 | Write-Host "Selection was cancelled, no apps have been removed" -ForegroundColor Red 1416 | Write-Output "" 1417 | } 1418 | } 1419 | 1420 | # Load custom options from the "SavedSettings" file 1421 | '4' { 1422 | PrintHeader 'Custom Mode' 1423 | Write-Output "Win11Debloat will make the following changes:" 1424 | 1425 | # Print the saved settings info from file 1426 | Foreach ($line in (Get-Content -Path "$PSScriptRoot/SavedSettings" )) { 1427 | # Remove any spaces before and after the line 1428 | $line = $line.Trim() 1429 | 1430 | # Check if the line contains a comment 1431 | if (-not ($line.IndexOf('#') -eq -1)) { 1432 | $parameterName = $line.Substring(0, $line.IndexOf('#')) 1433 | 1434 | # Print parameter description and add parameter to Params list 1435 | if ($parameterName -eq "RemoveAppsCustom") { 1436 | if (-not (Test-Path "$PSScriptRoot/CustomAppsList")) { 1437 | # Apps file does not exist, skip 1438 | continue 1439 | } 1440 | 1441 | $appsList = ReadAppslistFromFile "$PSScriptRoot/CustomAppsList" 1442 | Write-Output "- Remove $($appsList.Count) apps:" 1443 | Write-Host $appsList -ForegroundColor DarkGray 1444 | } 1445 | else { 1446 | Write-Output $line.Substring(($line.IndexOf('#') + 1), ($line.Length - $line.IndexOf('#') - 1)) 1447 | } 1448 | 1449 | if (-not $script:Params.ContainsKey($parameterName)) { 1450 | $script:Params.Add($parameterName, $true) 1451 | } 1452 | } 1453 | } 1454 | 1455 | if (-not $Silent) { 1456 | Write-Output "" 1457 | Write-Output "" 1458 | Write-Output "Press enter to execute the script or press CTRL+C to quit..." 1459 | Read-Host | Out-Null 1460 | } 1461 | 1462 | PrintHeader 'Custom Mode' 1463 | } 1464 | } 1465 | } 1466 | else { 1467 | PrintHeader 'Custom Mode' 1468 | } 1469 | 1470 | # If the number of keys in SPParams equals the number of keys in Params then no modifications/changes were selected 1471 | # or added by the user, and the script can exit without making any changes. 1472 | if ($SPParamCount -eq $script:Params.Keys.Count) { 1473 | Write-Output "The script completed without making any changes." 1474 | 1475 | AwaitKeyToExit 1476 | } 1477 | 1478 | # Execute all selected/provided parameters 1479 | switch ($script:Params.Keys) { 1480 | 'CreateRestorePoint' { 1481 | CreateSystemRestorePoint 1482 | continue 1483 | } 1484 | 'RemoveApps' { 1485 | $appsList = ReadAppslistFromFile "$PSScriptRoot/Appslist.txt" 1486 | Write-Output "> Removing default selection of $($appsList.Count) apps..." 1487 | RemoveApps $appsList 1488 | continue 1489 | } 1490 | 'RemoveAppsCustom' { 1491 | if (-not (Test-Path "$PSScriptRoot/CustomAppsList")) { 1492 | Write-Host "> Error: Could not load custom apps list from file, no apps were removed" -ForegroundColor Red 1493 | Write-Output "" 1494 | continue 1495 | } 1496 | 1497 | $appsList = ReadAppslistFromFile "$PSScriptRoot/CustomAppsList" 1498 | Write-Output "> Removing $($appsList.Count) apps..." 1499 | RemoveApps $appsList 1500 | continue 1501 | } 1502 | 'RemoveCommApps' { 1503 | $appsList = 'Microsoft.windowscommunicationsapps', 'Microsoft.People' 1504 | Write-Output "> Removing Mail, Calendar and People apps..." 1505 | RemoveApps $appsList 1506 | continue 1507 | } 1508 | 'RemoveW11Outlook' { 1509 | $appsList = 'Microsoft.OutlookForWindows' 1510 | Write-Output "> Removing new Outlook for Windows app..." 1511 | RemoveApps $appsList 1512 | continue 1513 | } 1514 | 'RemoveDevApps' { 1515 | $appsList = 'Microsoft.PowerAutomateDesktop', 'Microsoft.RemoteDesktop', 'Windows.DevHome' 1516 | Write-Output "> Removing developer-related related apps..." 1517 | RemoveApps $appsList 1518 | continue 1519 | } 1520 | 'RemoveGamingApps' { 1521 | $appsList = 'Microsoft.GamingApp', 'Microsoft.XboxGameOverlay', 'Microsoft.XboxGamingOverlay' 1522 | Write-Output "> Removing gaming related apps..." 1523 | RemoveApps $appsList 1524 | continue 1525 | } 1526 | 'RemoveHPApps' { 1527 | $appsList = 'AD2F1837.HPAIExperienceCenter', 'AD2F1837.HPJumpStarts', 'AD2F1837.HPPCHardwareDiagnosticsWindows', 'AD2F1837.HPPowerManager', 'AD2F1837.HPPrivacySettings', 'AD2F1837.HPSupportAssistant', 'AD2F1837.HPSureShieldAI', 'AD2F1837.HPSystemInformation', 'AD2F1837.HPQuickDrop', 'AD2F1837.HPWorkWell', 'AD2F1837.myHP', 'AD2F1837.HPDesktopSupportUtilities', 'AD2F1837.HPQuickTouch', 'AD2F1837.HPEasyClean', 'AD2F1837.HPConnectedMusic', 'AD2F1837.HPFileViewer', 'AD2F1837.HPRegistration', 'AD2F1837.HPWelcome', 'AD2F1837.HPConnectedPhotopoweredbySnapfish', 'AD2F1837.HPPrinterControl' 1528 | Write-Output "> Removing HP apps..." 1529 | RemoveApps $appsList 1530 | continue 1531 | } 1532 | "ForceRemoveEdge" { 1533 | ForceRemoveEdge 1534 | continue 1535 | } 1536 | 'DisableDVR' { 1537 | RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg" 1538 | continue 1539 | } 1540 | 'DisableTelemetry' { 1541 | RegImport "> Disabling telemetry, diagnostic data, activity history, app-launch tracking and targeted ads..." "Disable_Telemetry.reg" 1542 | continue 1543 | } 1544 | {$_ -in "DisableSuggestions", "DisableWindowsSuggestions"} { 1545 | RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg" 1546 | continue 1547 | } 1548 | {$_ -in "DisableLockscrTips", "DisableLockscreenTips"} { 1549 | RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg" 1550 | continue 1551 | } 1552 | 'DisableDesktopSpotlight' { 1553 | RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg" 1554 | continue 1555 | } 1556 | 'DisableSettings365Ads' { 1557 | RegImport "> Disabling Microsoft 365 ads in Settings Home..." "Disable_Settings_365_Ads.reg" 1558 | continue 1559 | } 1560 | 'DisableSettingsHome' { 1561 | RegImport "> Disabling the Settings Home page..." "Disable_Settings_Home.reg" 1562 | continue 1563 | } 1564 | {$_ -in "DisableBingSearches", "DisableBing"} { 1565 | RegImport "> Disabling Bing web search, Bing AI and Cortana from Windows search..." "Disable_Bing_Cortana_In_Search.reg" 1566 | 1567 | # Also remove the app package for Bing search 1568 | $appsList = 'Microsoft.BingSearch' 1569 | RemoveApps $appsList 1570 | continue 1571 | } 1572 | 'DisableCopilot' { 1573 | RegImport "> Disabling & removing Microsoft Copilot..." "Disable_Copilot.reg" 1574 | 1575 | # Also remove the app package for Copilot 1576 | $appsList = 'Microsoft.Copilot' 1577 | RemoveApps $appsList 1578 | continue 1579 | } 1580 | 'DisableRecall' { 1581 | RegImport "> Disabling Windows Recall snapshots..." "Disable_AI_Recall.reg" 1582 | continue 1583 | } 1584 | 'RevertContextMenu' { 1585 | RegImport "> Restoring the old Windows 10 style context menu..." "Disable_Show_More_Options_Context_Menu.reg" 1586 | continue 1587 | } 1588 | 'DisableMouseAcceleration' { 1589 | RegImport "> Turning off Enhanced Pointer Precision..." "Disable_Enhance_Pointer_Precision.reg" 1590 | continue 1591 | } 1592 | 'DisableStickyKeys' { 1593 | RegImport "> Disabling the Sticky Keys keyboard shortcut..." "Disable_Sticky_Keys_Shortcut.reg" 1594 | continue 1595 | } 1596 | 'DisableFastStartup' { 1597 | RegImport "> Disabling Fast Start-up..." "Disable_Fast_Startup.reg" 1598 | continue 1599 | } 1600 | 'ClearStart' { 1601 | Write-Output "> Removing all pinned apps from the start menu for user $(GetUserName)..." 1602 | ReplaceStartMenu 1603 | Write-Output "" 1604 | continue 1605 | } 1606 | 'ReplaceStart' { 1607 | Write-Output "> Replacing the start menu for user $(GetUserName)..." 1608 | ReplaceStartMenu $script:Params.Item("ReplaceStart") 1609 | Write-Output "" 1610 | continue 1611 | } 1612 | 'ClearStartAllUsers' { 1613 | ReplaceStartMenuForAllUsers 1614 | continue 1615 | } 1616 | 'ReplaceStartAllUsers' { 1617 | ReplaceStartMenuForAllUsers $script:Params.Item("ReplaceStartAllUsers") 1618 | continue 1619 | } 1620 | 'DisableStartRecommended' { 1621 | RegImport "> Disabling and hiding the start menu recommended section..." "Disable_Start_Recommended.reg" 1622 | continue 1623 | } 1624 | 'DisableStartPhoneLink' { 1625 | RegImport "> Disabling the Phone Link mobile devices integration in the start menu..." "Disable_Phone_Link_In_Start.reg" 1626 | continue 1627 | } 1628 | 'EnableDarkMode' { 1629 | RegImport "> Enabling dark mode for system and apps..." "Enable_Dark_Mode.reg" 1630 | continue 1631 | } 1632 | 'DisableTransparency' { 1633 | RegImport "> Disabling transparency effects..." "Disable_Transparency.reg" 1634 | continue 1635 | } 1636 | 'DisableAnimations' { 1637 | RegImport "> Disabling animations and visual effects..." "Disable_Animations.reg" 1638 | continue 1639 | } 1640 | 'TaskbarAlignLeft' { 1641 | RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg" 1642 | continue 1643 | } 1644 | 'HideSearchTb' { 1645 | RegImport "> Hiding the search icon from the taskbar..." "Hide_Search_Taskbar.reg" 1646 | continue 1647 | } 1648 | 'ShowSearchIconTb' { 1649 | RegImport "> Changing taskbar search to icon only..." "Show_Search_Icon.reg" 1650 | continue 1651 | } 1652 | 'ShowSearchLabelTb' { 1653 | RegImport "> Changing taskbar search to icon with label..." "Show_Search_Icon_And_Label.reg" 1654 | continue 1655 | } 1656 | 'ShowSearchBoxTb' { 1657 | RegImport "> Changing taskbar search to search box..." "Show_Search_Box.reg" 1658 | continue 1659 | } 1660 | 'HideTaskview' { 1661 | RegImport "> Hiding the taskview button from the taskbar..." "Hide_Taskview_Taskbar.reg" 1662 | continue 1663 | } 1664 | {$_ -in "HideWidgets", "DisableWidgets"} { 1665 | RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." "Disable_Widgets_Taskbar.reg" 1666 | 1667 | # Also remove the app package for Widgets 1668 | $appsList = 'Microsoft.StartExperiencesApp' 1669 | RemoveApps $appsList 1670 | continue 1671 | } 1672 | {$_ -in "HideChat", "DisableChat"} { 1673 | RegImport "> Hiding the chat icon from the taskbar..." "Disable_Chat_Taskbar.reg" 1674 | continue 1675 | } 1676 | 'EnableEndTask' { 1677 | RegImport "> Enabling the 'End Task' option in the taskbar right click menu..." "Enable_End_Task.reg" 1678 | continue 1679 | } 1680 | 'ExplorerToHome' { 1681 | RegImport "> Changing the default location that File Explorer opens to `Home`..." "Launch_File_Explorer_To_Home.reg" 1682 | continue 1683 | } 1684 | 'ExplorerToThisPC' { 1685 | RegImport "> Changing the default location that File Explorer opens to `This PC`..." "Launch_File_Explorer_To_This_PC.reg" 1686 | continue 1687 | } 1688 | 'ExplorerToDownloads' { 1689 | RegImport "> Changing the default location that File Explorer opens to `Downloads`..." "Launch_File_Explorer_To_Downloads.reg" 1690 | continue 1691 | } 1692 | 'ExplorerToOneDrive' { 1693 | RegImport "> Changing the default location that File Explorer opens to `OneDrive`..." "Launch_File_Explorer_To_OneDrive.reg" 1694 | continue 1695 | } 1696 | 'ShowHiddenFolders' { 1697 | RegImport "> Unhiding hidden files, folders and drives..." "Show_Hidden_Folders.reg" 1698 | continue 1699 | } 1700 | 'ShowKnownFileExt' { 1701 | RegImport "> Enabling file extensions for known file types..." "Show_Extensions_For_Known_File_Types.reg" 1702 | continue 1703 | } 1704 | 'HideHome' { 1705 | RegImport "> Hiding the home section from the File Explorer navigation pane..." "Hide_Home_from_Explorer.reg" 1706 | continue 1707 | } 1708 | 'HideGallery' { 1709 | RegImport "> Hiding the gallery section from the File Explorer navigation pane..." "Hide_Gallery_from_Explorer.reg" 1710 | continue 1711 | } 1712 | 'HideDupliDrive' { 1713 | RegImport "> Hiding duplicate removable drive entries from the File Explorer navigation pane..." "Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg" 1714 | continue 1715 | } 1716 | {$_ -in "HideOnedrive", "DisableOnedrive"} { 1717 | RegImport "> Hiding the OneDrive folder from the File Explorer navigation pane..." "Hide_Onedrive_Folder.reg" 1718 | continue 1719 | } 1720 | {$_ -in "Hide3dObjects", "Disable3dObjects"} { 1721 | RegImport "> Hiding the 3D objects folder from the File Explorer navigation pane..." "Hide_3D_Objects_Folder.reg" 1722 | continue 1723 | } 1724 | {$_ -in "HideMusic", "DisableMusic"} { 1725 | RegImport "> Hiding the music folder from the File Explorer navigation pane..." "Hide_Music_folder.reg" 1726 | continue 1727 | } 1728 | {$_ -in "HideIncludeInLibrary", "DisableIncludeInLibrary"} { 1729 | RegImport "> Hiding 'Include in library' in the context menu..." "Disable_Include_in_library_from_context_menu.reg" 1730 | continue 1731 | } 1732 | {$_ -in "HideGiveAccessTo", "DisableGiveAccessTo"} { 1733 | RegImport "> Hiding 'Give access to' in the context menu..." "Disable_Give_access_to_context_menu.reg" 1734 | continue 1735 | } 1736 | {$_ -in "HideShare", "DisableShare"} { 1737 | RegImport "> Hiding 'Share' in the context menu..." "Disable_Share_from_context_menu.reg" 1738 | continue 1739 | } 1740 | } 1741 | 1742 | RestartExplorer 1743 | 1744 | Write-Output "" 1745 | Write-Output "" 1746 | Write-Output "" 1747 | Write-Output "Script completed! Please check above for any errors." 1748 | 1749 | AwaitKeyToExit 1750 | --------------------------------------------------------------------------------