- Local time
- 8:03 PM
- Posts
- 5,193
- OS
- Windows 11
To use this, copy the code into Notepad, save it with a .bat extension (e.g., enable_updates.bat), and Run as Administrator.
Batch:
@echo off
:: Check for administrative privileges
net session >nul 2>&1
if %errorLevel% == 0 (
echo [OK] Running with administrative privileges.
) else (
echo [ERROR] Please right-click and "Run as Administrator".
pause
exit /b
)
echo.
echo --- Step 1: Enabling and Starting Services ---
:: Set services to Automatic
sc config wuauserv start= auto
sc config bits start= auto
sc config cryptsvc start= auto
sc config trustedinstaller start= auto
:: Start the services
net start wuauserv
net start bits
net start cryptsvc
net start trustedinstaller
echo.
echo --- Step 2: Removing Registry Restrictions ---
:: Remove common "Disable Update" policies often set by third-party tools or Group Policy
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /f >nul 2>&1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f >nul 2>&1
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess /f >nul 2>&1
echo.
echo --- Step 3: Resetting Windows Update Components ---
:: This triggers a refresh of the update detection state
echo Resetting update status...
wuauclt /resetautorun
wuauclt /detectnow
echo.
echo Done! Windows Update services should now be active.
echo It is recommended to restart your computer to ensure all changes take effect.
pause
My Computer
System One
-
- OS
- Windows 11
- Computer type
- PC/Desktop
- Manufacturer/Model
- HP Pavilion
- CPU
- AMD Ryzen 7 5700G
- Motherboard
- Erica6
- Memory
- Micron Technology DDR4-3200 16GB
- Graphics Card(s)
- NVIDIA GeForce RTX 3060
- Sound Card
- Realtek ALC671
- Monitor(s) Displays
- Samsung SyncMaster U28E590
- Screen Resolution
- 3840 x 2160
- Hard Drives
- SAMSUNG MZVLQ1T0HALB-000H1




