w10install/scripts/cleanup-programlist.cmd

21 lines
453 B
Batchfile
Raw Normal View History

@echo off
echo ####### %0 #######
echo.
echo trying to remove stale entries from program list ...
for %%K in (
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge"
) do (
2023-01-14 14:55:58 +01:00
echo deleting registry key [ %%K ] using NSUDO ...
nsudo -U:T -P:E reg delete %%K /f
)
echo ####### %0 #######