Skip to content

Instantly share code, notes, and snippets.

<!-- : Begin batch script
@setlocal DisableDelayedExpansion
@echo off
:: change to 1 to use VBScript to access WMI
:: automatically enabled if wmic.exe is not installed
set WMI_VBS=0
:: change to 1 to use Windows PowerShell to access WMI
:: automatically enabled if wmic.exe and VBScript are not installed
set WMI_PS=0
# Latest available updates for Windows 11 version 21H2 #
64-bit (x64)
Cumulative Update
https://catalog.s.download.windowsupdate.com/d/msdownload/update/software/secu/2024/10/windows10.0-kb5044280-x64_1ae3e328b1e44c196c57b4989d71f7919e0131c5.msu
Cumulative Update for .NET Framework 3.5 and 4.8
https://catalog.s.download.windowsupdate.com/d/msdownload/update/software/secu/2024/09/windows10.0-kb5044023-x64-ndp48_ef825b987e0a0c97d960baf9c4c6feb6bc84da47.msu
@abbodi1406
abbodi1406 / Consumer_ESU_Feature.cmd
Created January 16, 2026 07:03
Consumer ESU Features Management
@echo off
set "SysPath=%SystemRoot%\System32"
set "Path=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0\"
if exist "%SystemRoot%\Sysnative\reg.exe" (
set "SysPath=%SystemRoot%\Sysnative"
set "Path=%SystemRoot%\Sysnative;%SystemRoot%;%SystemRoot%\Sysnative\Wbem;%SystemRoot%\Sysnative\WindowsPowerShell\v1.0\;%Path%"
)
set "_psc=powershell -nop -c"
set "_err===== ERROR ===="
whoami /groups 2>nul | findstr /i /c:"S-1-16-16384" /c:"S-1-16-12288" >nul || (