Last active
December 23, 2015 20:47
-
-
Save maphew/ce01f28851dd15c8948a to your computer and use it in GitHub Desktop.
Implementation of "I Cancelled Microsoft 10 Reservation and uninstalled KB3035583 but Window 10 is still trying to install", http://superuser.com/questions/955444/i-cancelled-microsoft-10-reservation-and-uninstalled-kb3035583-but-window-10-is/
This file contains 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
:: --{ Remove-Win10-nag.bat }-- | |
:: http://superuser.com/questions/955444/i-cancelled-microsoft-10-reservation-and-uninstalled-kb3035583-but-window-10-is | |
:: must be run from elevated command prompt (Run As Administrator) | |
for %%a in (3035583 3022345 3068708 3075249 3080149 2990214 3012973 2952664 2976978) do ( | |
wusa /uninstall /kb:%%a /norestart /quiet | |
) | |
echo Windows Registry Editor Version 5.00 >> "%temp%\disable-win10-upgrade.txt" | |
echo. >> "%temp%\disable-win10-upgrade.txt" | |
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade] >> "%temp%\disable-win10-upgrade.txt" | |
echo "AllowOSUpgrade"=dword:00000000 >> "%temp%\disable-win10-upgrade.txt" | |
echo. >> "%temp%\disable-win10-upgrade.txt" | |
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade\State] >> "%temp%\disable-win10-upgrade.txt" | |
echo "OSUpgradeState"=dword:00000001 >> "%temp%\disable-win10-upgrade.txt" | |
echo. >> "%temp%\disable-win10-upgrade.txt" | |
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] >> "%temp%\disable-win10-upgrade.txt" | |
echo "DisableOSUpgrade"=dword:00000001 >> "%temp%\disable-win10-upgrade.txt" | |
echo. >> "%temp%\disable-win10-upgrade.txt" | |
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GWX] >> "%temp%\disable-win10-upgrade.txt" | |
echo "DisableGWX"=dword:00000001 >> "%temp%\disable-win10-upgrade.txt" | |
reg import "%temp%\disable-win10-upgrade.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment