Downloading and installing critical and important updates
Posted: 02 May 2013 17:49
I'd like to implement something into a batch file I'm making that downloads and installs critical and important updates to the pc it's ran on. If it needs to restart for these updates, it would do that as well. I've read some posts (and googled) about this but couldn't find the answer, or read that it wasn't possible. Is there a Windows Service of some sort that will communicate via prompt with updates? I found this:
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
wuauclt /detectnow
But testing it out on prompt I get no response, though prompt does not error it out. wuauserv /? nor wuauclt /? gives me anything. It also seems to go a bit to far messing with the registry.
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
wuauclt /detectnow
But testing it out on prompt I get no response, though prompt does not error it out. wuauserv /? nor wuauclt /? gives me anything. It also seems to go a bit to far messing with the registry.