new script to cleanup windows programs list
This commit is contained in:
parent
9f25b1df9c
commit
6b6db05518
@ -43,7 +43,6 @@ rem copy some other stuff ...
|
|||||||
call copy-exefiles.cmd
|
call copy-exefiles.cmd
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo.
|
|
||||||
echo #######################
|
echo #######################
|
||||||
echo ### MODIFICATIONS ###
|
echo ### MODIFICATIONS ###
|
||||||
echo #######################
|
echo #######################
|
||||||
@ -175,6 +174,10 @@ rem ... stupid os problem #2
|
|||||||
call cleanup-startmenu.cmd
|
call cleanup-startmenu.cmd
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
rem ... stupid os problem #3
|
||||||
|
call cleanup-programlist.cmd
|
||||||
|
echo.
|
||||||
|
|
||||||
echo rebooting ...
|
echo rebooting ...
|
||||||
shutdown -g -t 0
|
shutdown -g -t 0
|
||||||
echo.
|
echo.
|
||||||
|
22
scripts/cleanup-programlist.cmd
Normal file
22
scripts/cleanup-programlist.cmd
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
@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 (
|
||||||
|
|
||||||
|
echo %%K
|
||||||
|
setacl -on %%K -ot reg -actn setowner -ownr "n:Administrators" 1>nul 2>nul
|
||||||
|
setacl -on %%K -ot reg -actn ace -ace "n:Administrators;p:full" 1>nul 2>nul
|
||||||
|
reg delete %%K /f
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
echo ####### %0 #######
|
||||||
|
|
@ -26,22 +26,6 @@ echo block edge updates ...
|
|||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" ^
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" ^
|
||||||
/v "DoNotUpdateToEdgeWithChromium" /d 1 /t REG_DWORD /f
|
/v "DoNotUpdateToEdgeWithChromium" /d 1 /t REG_DWORD /f
|
||||||
|
|
||||||
echo.
|
|
||||||
echo trying to remove stale entries from software 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 (
|
|
||||||
|
|
||||||
echo %%K
|
|
||||||
SetACL.exe -on %%K -ot reg -actn setowner -ownr "n:Administrators" 1>nul 2>nul
|
|
||||||
SetACL.exe -on %%K -ot reg -actn ace -ace "n:Administrators;p:full" 1>nul 2>nul
|
|
||||||
reg delete %%K /f
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user