Forum Discussion
TomKimg
Sep 05, 2025Iron Contributor
How do I clean registry in windows 11 after uninstalling apps?
Hi, I recently uninstalled a few programs on Windows 11, but it seems to have left behind remnants (e.g., it still appears in the "Open with" context menu, or errors pop up related to it). I believ...
Aureliow
Sep 05, 2025Copper Contributor
For advanced users, you can write a PowerShell script that targets and cleans specific registry entries, such as unused keys from uninstalled software, leftover settings, etc. This is not typically recommended for beginners but can be effective in targeting specific areas of the registry.
$keyPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall"
$keys = Get-ChildItem -Path $keyPath
foreach ($key in $keys) {
Remove-Item -Path $key.PSPath -Recurse -Force
}
This script will clean windows 11 registry entries under the uninstall section for software that may no longer be installed