Last active
October 31, 2025 19:42
-
-
Save olegsych/77f2c1bf8ab14c18b0bea4aed5ab68ad to your computer and use it in GitHub Desktop.
Windows 11 cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| winget uninstall "Remote help" | |
| winget uninstall Clipchamp.Clipchamp_yxz26nhyzhsrt | |
| winget uninstall Microsoft.BingNews_8wekyb3d8bbwe | |
| winget uninstall Microsoft.BingSearch_8wekyb3d8bbwe | |
| winget uninstall Microsoft.BingWeather_8wekyb3d8bbwe | |
| winget uninstall Microsoft.CompanyPortal_8wekyb3d8bbwe | |
| winget uninstall Microsoft.Copilot_8wekyb3d8bbwe | |
| winget uninstall Microsoft.DevHome | |
| winget uninstall Microsoft.GamingApp_8wekyb3d8bbwe | |
| winget uninstall Microsoft.GetHelp_8wekyb3d8bbwe | |
| winget uninstall Microsoft.Getstarted_8wekyb3d8bbwe | |
| winget uninstall Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe | |
| winget uninstall Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe | |
| winget uninstall Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe | |
| winget uninstall Microsoft.OneDrive | |
| winget uninstall Microsoft.OneDriveSync_8wekyb3d8bbwe | |
| winget uninstall Microsoft.Paint_8wekyb3d8bbwe | |
| winget uninstall Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe | |
| winget uninstall Microsoft.StorePurchaseApp_8wekyb3d8bbwe | |
| winget uninstall Microsoft.VSTOR | |
| winget uninstall Microsoft.Windows.Photos_8wekyb3d8bbwe | |
| winget uninstall Microsoft.WindowsAlarms_8wekyb3d8bbwe | |
| winget uninstall Microsoft.WindowsCamera_8wekyb3d8bbwe | |
| winget uninstall Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe | |
| winget uninstall Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe | |
| winget uninstall Microsoft.WindowsStore_8wekyb3d8bbwe | |
| winget uninstall Microsoft.Xbox.TCUI_8wekyb3d8bbwe | |
| winget uninstall Microsoft.XboxGamingOverlay_8wekyb3d8bbwe | |
| winget uninstall Microsoft.XboxIdentityProvider_8wekyb3d8bbwe | |
| winget uninstall Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe | |
| winget uninstall Microsoft.YourPhone_8wekyb3d8bbwe | |
| winget uninstall Microsoft.ZuneMusic_8wekyb3d8bbwe | |
| winget uninstall MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe | |
| winget uninstall SpotifyAB.SpotifyMusic_zpdnekdrzrea0 | |
| winget uninstall Unity.UnityHub | |
| winget uninstall MSIX\Microsoft.Services.Store.Engagement_10.0.23012.0_x86__8wekyb3d8bbwe | |
| winget uninstall MSIX\Microsoft.Services.Store.Engagement_10.0.23012.0_x64__8wekyb3d8bbwe | |
| dism /online /norestart /disable-feature /featurename:WindowsMediaPlayer | |
| dism /online /norestart /disable-feature /featurename:MediaPlayback | |
| dism /online /norestart /disable-feature /featurename:Microsoft-Hyper-V-All | |
| dism /online /norestart /disable-feature /featurename:WCF-Services45 | |
| dism /online /norestart /disable-feature /featurename:WorkFolders-Client | |
| shutdown /r /t 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
| dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
| winget install Microsoft.WindowsApp | |
| winget install AzCopy | |
| winget install Git.Git | |
| # winget install GNU.Nano | |
| winget install 7zip.7zip | |
| winget install WinMerge.WinMerge | |
| winget install icsharpcode.ILSpy | |
| winget install Microsoft.NuGet | |
| winget install Microsoft.PowerShell | |
| winget install Microsoft.VisualStudioCode | |
| : https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio | |
| : https://learn.microsoft.com/en-us/visualstudio/install/workload-and-component-ids | |
| winget install Microsoft.VisualStudio.2022.Community --override "--passive --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Workload.NativeCrossPlat --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.Net.Component.4.6.2.TargetingPack" | |
| winget install PureText --silent --accept-package-agreements | |
| winget install KirillOsenkov.MSBuildStructuredLogViewer | |
| winget install Microsoft.AzureCLI | |
| winget install Microsoft.WinDbg | |
| winget install Microsoft.Sysinternals.Suite | |
| winget install "NuGet Package Explorer" --accept-package-agreements | |
| winget install PerfView | |
| # Enable long paths | |
| reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f | |
| git config --global --add core.longPaths true | |
| pwsh -Command Set-PSRepository PSGallery -InstallationPolicy Trusted | |
| powershell -Command Set-PSRepository PSGallery -InstallationPolicy Trusted | |
| git config --global --add core.editor code | |
| wsl --install | |
| pwsh | |
| Install-Module posh-git | |
| Install-Module PSWindowsUpdate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| winget uninstall Unity.UnityHub | |
| winget uninstall Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe | |
| winget uninstall Microsoft.CompanyPortal_8wekyb3d8bbwe | |
| wsl --update | |
| wsl sudo apt full-upgrade | |
| winget upgrade --all --recurse --disable-interactivity --accept-package-agreements --accept-source-agreements --include-unknown | |
| powershell -Command Update-Module | |
| pwsh | |
| Update-Module | |
| Import-Module PSWindowsUpdate | |
| Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| : Settings > Personalization > Taskbar > Search > Hide | |
| reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f | |
| : Settings > Personalization > Taskbar > Task view > Off | |
| reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowTaskViewButton /t REG_DWORD /d 0 /f | |
| : Settings > Personalization > Taskbar > Widgets > Off | |
| reg add "HKLM\Software\Policies\Microsoft\Dsh" /v "AllowNewsAndInterests" /t REG_DWORD /d "0" /f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rem Make the folder tree | |
| md C:\Symbols | |
| md C:\Symbols\Src | |
| md C:\Symbols\Sym | |
| md C:\Symbols\SymCache | |
| rem Create the 'Tier 2' Symbol cache Marker Files | |
| echo Index2 > C:\Symbols\Sym\index2.txt | |
| echo PingMe > C:\Symbols\Sym\pingme.txt | |
| rem Compress the folder tree | |
| compact.exe /C /I /Q /S:"C:\Symbols" | |
| md C:\Dumps | |
| compact.exe /C /I /Q /S:"C:\Dumps" | |
| rem Symbols | |
| setx DBGHELP_HOMEDIR C:\Symbols | |
| setx _NT_SOURCE_PATH SRV*C:\Symbols\Src | |
| rem setx _NT_SYMBOL_PATH SRV*C:\Symbols\Sym*https://symweb.azurefd.net | |
| setx _NT_SYMBOL_PATH SRV*C:\Symbols\Sym*https://msdl.microsoft.com/download/symbols | |
| setx _NT_SYMCACHE_PATH C:\Symbols\SymCache | |
| rem Increase the size of the Dump's Mapped View from 16x 1Mb, to 256x 1Gb (applies to the 64bit debugger only) | |
| setx DBGENG_MAPPED_GRANULARITY_COUNT 256 | |
| setx DBGENG_MAPPED_GRANULARITY_SIZE 1024 | |
| rem Access PDBs using Mapped I/O, instead of File I/O | |
| setx DBGHELP_DIA_ISTREAM 2 | |
| rem Don't update the (NTFS) "Last Accessed Time" on PDBs, as they are accessed. | |
| rem "Last Accessed Time" is only needed if "agestore.exe" is to be used to trim the cache (and most people don't use it) | |
| setx DBGHELP_DISABLEACCESSTIMEUPDATE 1 | |
| rem Cache Symbolic information in a SQLite database. SQLite is much faster to access, than parsing PDBs. | |
| rem Just make the folder and set the environment variable. The database file will be made automatically, and the tables added/updated automatically. | |
| md C:\Symbols\SymSQLite | |
| setx _NT_SYMSQLITE_PATH C:\Symbols\SymSQLite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment