How to Stop Windows 10 Upgrade on Your PC
In this article
Yes, you can prevent your PC from upgrading to Windows 10—especially if you're still on Windows 7 or 8.1—by disabling Windows Update notifications, blocking specific update files, and adjusting group policy or registry settings. This guide applies to systems running Windows 7 SP1 or Windows 8.1, as Windows 10 is no longer offered as a free upgrade and automatic pushes ended in 2016; however, some legacy systems may still attempt upgrades via residual update files or third-party tools. For modern Windows 10 or 11 machines, upgrade prevention is generally unnecessary, but blocking feature updates is covered in the tips section.
What You'll Need
- A Windows 7 SP1 or Windows 8.1 PC currently set to automatic updates
- Administrator rights on the PC
- Access to Command Prompt (run as Administrator)
- Optional: Windows Group Policy Editor (available only on Windows 7 Professional, Enterprise, or Ultimate; and Windows 8.1 Pro)
Step-by-Step
- Uninstall the Windows 10 upgrade app (Get Windows 10 or GWX): Open Control Panel > Programs and Features > View installed updates. Scroll down to "Microsoft Windows" and look for entries named "KB3035583" (Get Windows 10 app) or "KB2952664" (Windows Update client). Right-click each and select Uninstall. Restart the PC after uninstalling all listed items.
- Hide Windows 10 upgrade updates in Windows Update: Open Windows Update (Control Panel > System and Security > Windows Update). Click "Check for updates", wait for results, then click "View available updates". In the list, find any update with "Windows 10" or "KB3035583" in the name. Right-click each and choose "Hide update". This prevents them from reinstalling automatically.
- Disable the GWX service (if present): Press Win+R, type
services.msc, and press Enter. Locate "Get Windows 10" (GWX) in the list. Double-click it, change "Startup type" to "Disabled", then click Stop and OK. Restart the PC to confirm the service stays stopped. - Block Windows 10 updates via Group Policy (Pro versions only): Press Win+R, type
gpedit.msc, and press Enter. Navigate to Computer Configuration > Administrative Templates > Windows Components > Windows Update. Double-click "Configure Automatic Updates", select Enabled, then choose "Notify for download and notify for install" from the dropdown. Click Apply > OK. Next, go to Computer Configuration > Administrative Templates > Windows Components > Windows Update > Manage End of Life, and double-click "Turn off Windows 10 upgrade experience". Set it to Enabled and click OK. - Use a registry fix for non-Pro editions: Press Win+R, type
regedit, and press Enter (run as Administrator). Navigate toHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate. If theWindowsUpdatekey doesn’t exist, right-clickWindowsUpdate, choose New > Key, and name itTargetReleaseVersion. InsideTargetReleaseVersion, create a new DWORD (32-bit) Value namedTargetReleaseVersionand set its value to 1. Then create another DWORD namedProductVersionand set it toWindows 7(for Win7) orWindows 8.1(for Win8.1). Restart the PC. - Run a blocking script to block upgrade domains: Open Notepad as Administrator. Paste the following lines:
echo 127.0.0.1 gw.microsoft.com >> %windir%\System32\drivers\etc\hosts echo 127.0.0.1 settings-win.data.microsoft.com >> %windir%\System32\drivers\etc\hosts echo 127.0.0.1 live.events.microsoft.com >> %windir%\System32\drivers\etc\hostsSave the file asblock_upgrade.bat(ensure "Save as type" is All Files, not Text Documents). Right-click the file and choose Run as Administrator. This redirects upgrade-related domains to localhost, preventing download.
Common Mistakes
- Uninstalling only one KB update—multiple KBs (e.g., KB2952664, KB3021917, KB3035583) may be installed. Check all listed updates carefully.
- Not restarting after uninstalling—some services only fully disable after a reboot.
- Missing the "Hide update" step—unhiding updates later will re-enable the upgrade prompt.
- Using registry edits on Home editions without confirming key paths—incorrect paths can cause system instability.
- Relying solely on third-party tools like "Windows 10 Blocker" without verifying their source—many are bundled with unwanted software.
Tips
- For Windows 10 users wanting to block major feature updates (e.g., the twice-yearly upgrades), go to Settings > Update & Security > Windows Update > Advanced Options, then select "Pause updates" for up to 35 days at a time.
- Use metered connections (e.g., tethering) to limit background downloads—Windows Update respects metered networks by default.
- Ensure your PC’s date and time are correct—incorrect settings can cause update failures or false positives.
- After applying fixes, run Windows Update again to confirm no Windows 10 upgrades appear in the optional updates list.
- Back up your registry before editing: In regedit, click File > Export, choose a folder, and save as
RegistryBackup.reg.
Troubleshooting
If your PC still tries to upgrade to Windows 10, start with these checks:
- Verify all KB updates are uninstalled: Go back to View installed updates and recheck for KB3035583, KB2952664, KB3021917, KB2976978, and KB3075249. Uninstall and hide any remaining.
- Confirm the hosts file was written correctly: Open
C:\Windows\System32\drivers\etc\hostsin Notepad as Administrator. Ensure lines like127.0.0.1 gw.microsoft.comexist and are not commented out with a # symbol. - Check for residual GWX files: Open Command Prompt as Administrator and run:
del /f /s /q "%ProgramData%\Microsoft\Windows\GWX"rd /s /q "%ProgramData%\Microsoft\Windows\GWX"This deletes leftover upgrade directories. - Reset Windows Update components: Run these commands in Command Prompt (Admin), pressing Enter after each:
net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserverren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 catroot2.oldnet start wuauservnet start cryptSvcnet start bitsnet start msiserverThen restart and check for updates again. - Disable Windows Update temporarily: In services.msc, set Windows Update to Disabled. Run your checks, then re-enable it later (set to Automatic) once you’ve confirmed no unwanted upgrades appear.
If the upgrade begins during installation, immediately disconnect from the internet (disable Wi-Fi or unplug Ethernet) and force-restart. Then repeat the steps above.
Frequently Asked Questions
Can I still get Windows 10 for free through an upgrade prompt?
No. Microsoft’s free upgrade offer ended in July 2016. Any remaining prompts on Windows 7 or 8.1 are typically residual updates—blocking them as described will stop them.
Will hiding Windows 10 updates stop security patches for my OS?
No. Hiding only upgrades (e.g., KB3035583) does not affect security updates. You’ll still receive critical patches for Windows 7/8.1 as long as they’re supported (Windows 7 ended in January 2020, so extended security updates require a paid subscription).
Does this method work on Windows 10 or 11?
Not for upgrading to Windows 10—those systems already run it. However, the Group Policy and registry steps in Step 4 can help block Windows 10 *feature updates* on Windows 10/11 if you set TargetReleaseVersion=1 and ProductVersion=Windows 10.
Why does the upgrade prompt reappear after I hide it?
Windows may redownload the update if your PC reconnects to Microsoft’s servers without the hosts file or registry in place. Re-run the blocking script and verify the registry keys are still present.
Is it safe to edit the hosts file or registry?
Yes—if done correctly. Always back up the registry first, and avoid deleting lines in the hosts file other than adding the upgrade blocks. A single typo can break internet access.
What if I accidentally upgraded and want to go back?
If you upgraded within 10 days, go to Settings > Update & Security > Recovery and select "Go back to Windows [previous version]". After 10 days, you must reinstall your old OS manually using installation media.