Disable All Nags for Windows 10 To upgrade to 11

By Engineerisaac · 2025-11-22 18:07:29 · 1049 views Public
Back to feed

Got tired of seeing all the "Please upgrade to windows 11" So Here is a script to disable all the naggy shit.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@echo off
title Blocking All Windows 11 Upgrade Prompts
color 0A

echo ============================================================
echo   DISABLING WINDOWS 11 UPGRADE NAGS / SERVICES / POPUPS
echo ============================================================
echo.

REM ---- REQUIRE ADMIN ----
net session >nul 2>&1
if %errorlevel% NEQ 0 (
    echo This script must be run as Administrator.
    pause
    exit /b
)

echo [1/12] Blocking OS Upgrade via Registry...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v TargetReleaseVersion /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v TargetReleaseVersionInfo /t REG_SZ /d "21H2" /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v ProductVersion /t REG_SZ /d "Windows 10" /f >nul

echo [2/12] Blocking Windows Update auto-upgrade offers...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableOSUpgrade /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\WindowsUpdate\OSUpgrade" /v AllowOSUpgrade /t REG_DWORD /d 0 /f >nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /v ReservationsAllowed /t REG_DWORD /d 0 /f >nul

echo [3/12] Blocking GWX ("Get Windows 11") if present...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\GWX" /v DisableGWX /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\GWX" /v DisableGwx /t REG_DWORD /d 1 /f >nul
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GWX" /v DisableGWX /t REG_DWORD /d 1 /f >nul

echo [4/12] Disabling Update Assistant (Windows10Upgrade folder)...
taskkill /IM Windows10UpgraderApp.exe /F >nul 2>&1
taskkill /IM Windows10Upgrade.exe /F >nul 2>&1
takeown /F "C:\Windows10Upgrade" /R /D Y >nul 2>&1
icacls "C:\Windows10Upgrade" /grant administrators:F /T >nul 2>&1
rmdir /S /Q "C:\Windows10Upgrade" >nul 2>&1

echo [5/12] Removing OS Upgrade download cache...
rmdir /S /Q "C:\$WINDOWS.~BT" >nul 2>&1
rmdir /S /Q "C:\$WINDOWS.~WS" >nul 2>&1

echo [6/12] Disabling Scheduled Tasks that push upgrades...
schtasks /Change /TN "\Microsoft\Windows\UpdateOrchestrator\USO_UxBroker_Display" /Disable >nul 2>&1
schtasks /Change /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Upgrade Scan" /Disable >nul 2>&1
schtasks /Change /TN "\Microsoft\Windows\UpdateOrchestrator\Schedule Scan" /Disable >nul 2>&1
schtasks /Change /TN "\Microsoft\Windows\UpdateAssistant\UpdateAssistant" /Disable >nul 2>&1
schtasks /Change /TN "\Microsoft\Windows\UpdateAssistant\UpdateAssistantAllUsersRun" /Disable >nul 2>&1

echo [7/12] Disabling Update Assistant Services...
sc stop WaaSMedicSvc >nul 2>&1
sc config WaaSMedicSvc start= disabled >nul 2>&1

sc stop UsoSvc >nul 2>&1
sc config UsoSvc start= disabled >nul 2>&1

echo [8/12] Blocking forced feature update drivers...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /v SearchOrderConfig /t REG_DWORD /d 0 /f >nul

echo [9/12] Disabling Windows Update Medic from auto-fixing your blocks...
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc" /v Start /t REG_DWORD /d 4 /f >nul

echo [10/12] Disable Update Health Tools (KB4023057 nag tool)...
taskkill /IM sedsvc.exe /F >nul 2>&1
reg delete "HKLM\SOFTWARE\Microsoft\Sed" /f >nul 2>&1
reg delete "HKLM\SOFTWARE\Microsoft\UpdateHealthTools" /f >nul 2>&1

echo [11/12] Blocking Windows Update Web-Based Upgrade UX...
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement" /v ScoobeSystemSettingEnabled /t REG_DWORD /d 0 /f >nul

echo [12/12] Preventing any OS setup launch triggers...
assoc .esd=Nope >nul
assoc .wim=Nope >nul

echo.
echo ============================================================
echo          ALL WINDOWS 11 UPGRADE PATHS BLOCKED
echo ============================================================
echo.
pause
exit /b
Comments
Log in to add a comment.
No comments yet.