Windows update: Force update right now

I use the following script batch file to force Windows Updates or the WSUS client to start the update process:

@echo off
rem Stop the Windows update service:
net stop wuauserv
rem Delete registry keys that store information about the last update.
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
rem Start the Windows update service:
net start wuauserv
rem Force detection of updates
wuauclt /detectnow
rem Sleep 4 seconds so you can read messages:
ping localhost >nul

© GeekLabInfo Windows update: Force update right now is a post from GeekLab.info. You are free to copy materials from GeekLab.info, but you are required to link back to http://www.geeklab.info
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

*

code