Batch File to Update Windows

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
b60khansen
Posts: 1
Joined: 02 Aug 2016 14:21

Batch File to Update Windows

#1 Post by b60khansen » 02 Aug 2016 14:45

I can't seem to get this to work the way I want it to.

net stop wuauserv
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
net start wuauserv
C:\Windows\system32\wuauclt.exe /detectnow
C:\Windows\system32\wuauclt.exe /updatenow

And even though is says there are no updates available for your computer if I click "Check online for updates from Windows Update" (which is the one I want" it finds updates. Those are the updates I want to install. Is there a way to do this through a bat file?

Post Reply