Last active
December 22, 2025 23:53
-
-
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 source remove msstore | |
| winget uninstall "AMD Radeon Software" | |
| winget uninstall "Cross Device Experience Host" | |
| winget uninstall "Dev Home" | |
| winget uninstall "HP One Agent" | |
| winget uninstall "HP System Information" | |
| winget uninstall "Microsoft Clipchamp" | |
| winget uninstall "Phone Link" | |
| winget uninstall "Remote help" | |
| winget uninstall "Start Experiences App" | |
| winget uninstall "Widgets Platform Runtime" | |
| winget uninstall "Windows Web Experience Pack" | |
| 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.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.VisualStudio.2022.Community | |
| winget uninstall Microsoft.VisualStudio.2022.Enterprise | |
| 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.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 | |
| powershell -Command "Get-Module Az.* -ListAvailable | Uninstall-Module -Force" | |
| powershell -Command "Get-AppxPackage WindowsWorkload.* | Remove-AppxPackage" | |
| powershell -Command "Get-AppxPackage Ink.* | Remove-AppxPackage" | |
| dism /online /norestart /disable-feature /FeatureName:Recall | |
| 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.DotNet.SDK.10dot | |
| 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.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 --add Microsoft.VisualStudio.Component.Debugger.JustInTime" | |
| 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 | |
| powershell -Command Set-PSRepository PSGallery -InstallationPolicy Trusted | |
| pwsh -Command Set-PSRepository PSGallery -InstallationPolicy Trusted | |
| pwsh -Command Install-Module posh-git | |
| pwsh -Command Install-Module PSWindowsUpdate | |
| git config --global --add core.editor "code --wait" | |
| wsl --install |
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
| wsl --update | |
| wsl sudo apt full-upgrade | |
| winget uninstall Unity.UnityHub | |
| winget uninstall Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe | |
| winget uninstall Microsoft.CompanyPortal_8wekyb3d8bbwe | |
| winget upgrade --all --recurse --disable-interactivity --accept-package-agreements --accept-source-agreements --include-unknown | |
| powershell -Command Update-Module | |
| pwsh -Command Update-Module | |
| pwsh -Command { 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 | |
| : Settings > System > Multitasking > Snap windows > Suggest > Off | |
| reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v SnapAssist /t REG_DWORD /d 0 /f | |
| : Settings > System > Multitasking > Show tabs on Alt+Tab > Don't show | |
| reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v MultiTaskingAltTabFilter /t REG_DWORD /d 3 /f | |
| : Settings > Personalization > Background > Solid color / Black | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers" /v BackgroundType /t REG_DWORD /d 1 /f | |
| reg add "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d "" /f | |
| reg add "HKCU\Control Panel\Colors" /v Background /t REG_SZ /d "0 0 0" /f | |
| : Undo OneDrive folder chages | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d ^%USERPROFILE^%\Desktop /f | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_EXPAND_SZ /d ^%USERPROFILE^%\Documents /f | |
| reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v {F42EE2D3-909F-4907-8871-4C22FC0BF756} /t REG_EXPAND_SZ /d ^%USERPROFILE^%\Documents /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 | |
| setx _NT_SYMBOL_PATH SRV*C:\Symbols\Sym*https://symweb.azurefd.net;SRV*C:\Symbols\Sym*https://artifacts.dev.azure.com/msazure/_apis/symbol/symsrv | |
| rem 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