Skip to content

Instantly share code, notes, and snippets.

@bse666
Last active April 11, 2016 23:12
Show Gist options
  • Save bse666/09a92fce9e0de8b4132b to your computer and use it in GitHub Desktop.
Save bse666/09a92fce9e0de8b4132b to your computer and use it in GitHub Desktop.
Windows 7 privacy
echo Uninstalling KB3021917
wusa /uninstall /KB:3021917 /norestart /quiet
echo Uninstalling KB3050265
wusa /uninstall /KB:3050265 /norestart /quiet
echo Uninstalling KB3035583
wusa /uninstall /KB:3035583 /norestart /quiet
echo Uninstalling KB2952664
wusa /uninstall /KB:2952664 /norestart /quiet
echo Uninstalling KB2952664
for /L %%i in (1,1,13) do start /w wusa.exe /uninstall /kb:2952664
echo Uninstalling KB2990214
wusa /uninstall /KB:2990214 /norestart /quiet
echo Uninstalling KB3068708
wusa /uninstall /KB:3068708 /norestart /quiet
echo Uninstalling KB3022345
wusa /uninstall /KB:3022345 /norestart /quiet
echo Uninstalling KB3075851
wusa /uninstall /KB:3075851 /norestart /quiet
echo Uninstalling KB3045999
wusa /uninstall /KB:3045999 /norestart /quiet
echo Uninstalling KB3065987
wusa /uninstall /KB:3065987 /norestart /quiet
echo Uninstalling KB2976978
wusa /uninstall /KB:2976978 /norestart /quiet
echo Uninstalling KB2919355
wusa /uninstall /KB:2919355 /norestart /quiet
echo Uninstalling KB2977759
wusa /uninstall /KB:2977759 /norestart /quiet
echo Uninstalling KB3075249
wusa /uninstall /KB:3075249 /norestart /quiet
echo Uninstalling KB3080149
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3044374
wusa /uninstall /KB:3044374 /norestart /quiet
wusa /uninstall /KB3075851 /norestart /quiet
echo Uninstalling KB3050265
wusa /uninstall /kb:3050265 /norestart /quiet
echo Uninstalling KB3083324
wusa /uninstall /kb:3083324 /norestart /quiet
echo Uninstalling KB2882822
wusa /uninstall /kb:2882822 /norestart /quiet
echo Uninstalling KB3083325
wusa /uninstall /kb:3083325 /quiet /norestart
echo Uninstalling KB3075853
wusa /uninstall /kb:3075853 /quiet /norestart
echo Uninstalling KB2902907
wusa /uninstall /kb:2902907 /quiet /norestart
echo Uninstalling KB3015249
wusa /uninstall /kb:3015249 /norestart /quiet
echo Uninstalling KB3012973
wusa /uninstall /kb:3012973 /norestart /quiet
echo Uninstalling KB2922324
wusa /uninstall /kb:2922324 /norestart /quiet
echo Uninstalling KB3088195
wusa /uninstall /kb:3088195 /norestart /quiet
echo Uninstalling KB3093983
wusa /uninstall /kb:3093983 /norestart /quiet
echo Uninstalling KB3093513
wusa /uninstall /kb:3093513 /norestart /quiet
echo Uninstalling KB3042058
wusa /uninstall /kb:3042058 /norestart /quiet
echo Uninstalling KB3083710
wusa /uninstall /kb:3083710 /norestart /quiet
echo Uninstalling KB2505438
wusa /uninstall /kb:2505438 /norestart /quiet
echo Uninstalling KB2670838
wusa /uninstall /kb:2670838 /norestart /quiet
echo Uninstalling KB971033
wusa /uninstall /kb:971033 /quiet /norestart
echo Uninstalling KB3072630
wusa /uninstall /kb:kb:3072630 /norestart /quiet
echo Uninstalling KB2976987
start /w wusa.exe /uninstall /kb:2976987 /quiet /norestart
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows]
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Gwx] "DisableGwx"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] "DisableOSUpgrade"=dword:00000001
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:2990214 /norestart /quiet”
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:2952664 /norestart /quiet”
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3021917 /norestart /quiet”
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3022345 /norestart /quiet”
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3035583 /norestart /quiet”
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3068708 /norestart /quiet”
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3075249 /norestart /quiet”
start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3080149 /norestart /quiet”
$updates = wmic qfe list /format:csv|convertfrom-csv
if ($updates.hotfixid -like “*2990214*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:2990214 /norestart”}
if ($updates.hotfixid -like “*2952664*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:2952664 /norestart”}
if ($updates.hotfixid -like “*3021917*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3021917 /norestart”}
if ($updates.hotfixid -like “*3022345*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3022345 /norestart”}
if ($updates.hotfixid -like “*3035583*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3035583 /norestart”}
if ($updates.hotfixid -like “*3068708*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3068708 /norestart”}
if ($updates.hotfixid -like “*3075249*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3075249 /norestart”}
if ($updates.hotfixid -like “*3080149*”){start-process “c:\windows\system32\wusa.exe” -wait -nonewwindow -argumentlist “/uninstall /kb:3080149 /norestart”}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment