[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How can I force my computers to download the Windows updates from my WSus

Posted on 2007-07-19
Medium Priority
Last Modified: 2008-05-31
How can I force my computers to download the Windows updates from my WSus and no to wait to the schedule day
Question by:jmsienrique
  • 2
LVL 10

Expert Comment

ID: 19524974
do you have domain setup? setup a domain policy which will point your WSUS server for updates
LVL 10

Expert Comment

ID: 19524996
LVL 58

Accepted Solution

tigermatt earned 2000 total points
ID: 19525132
So you want to force a workstation to connect to the WSUS server when you trigger it to update? In this case, the information above is simply the standard way of setting it up through Group Policy, which only checks every 22 hours or something like that.

Run the command     wuauclt /detectnow     from the Run box or a command prompt window. That will go off and check for updates and install them according to your settings (or prompt to install). It may take a few minutes before you see it downloaded them as it may take time to scan the PC.

If that method doesn't work for whatever reason, the below script does a little more work which may do it instead. Again, it does the same as above and may take several minutes to appear.

Copy the file below into Notepad and save the file as a batch file (not a text file) with a .BAT extension. Run by double-clicking it in the location you saved it.

@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)
Echo 6. Force the detection
@echo on
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
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.

Author Comment

ID: 19525802
thanks a lot

I type the command and I am goig to check what appends


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question