2

I was using wuauclt.exe /detectnow /updatenow till now

and now on my Windows 10 Enterprise Build 1511 it's not working

Is there an alternative way to detect and install updates using command?

I know it installs them automatically but i have no control over that schedule, i am not looking to defer them. I just want to be able to install if they are available on demand.

My Test

I had this machine where updates were installed on 4/11 so on 4/13 it was just sitting there not installing the updates, I ran the above command it did nothing Then i went to PC Settings manually click Check Updates and it started installing.

So instead of having to manually check i would like to do that via command

6
  • what is not working? Why do you install them via commandline? Windows 10 install updates automatically by default. Apr 13, 2016 at 4:20
  • how often it's checking when there is new updates?
    – SeanClt
    Apr 13, 2016 at 4:25
  • @magicandre1981 at this moment i know there are updates avaialble but windows 10 updates is not just triggering it so dont konw what it's waiting for or how often does it check. I would like to trigger this on demand so i can be done with it and need this done via command so i can schedule it
    – SeanClt
    Apr 13, 2016 at 17:50
  • You are having the identical problem on Windows 7. If it helps I can confirm this command still works on Windows 10. Are you connected to a domain and/or is Windows set to download from WSUS?
    – Ramhound
    Apr 13, 2016 at 20:10
  • i am not connected to Domain, these download directly from microsoft i forgot about that win 7 completely, i am running some more tests, thanks for confirming that same command works for you on Windows 10, maybe i am missing something, i am going to try to disable UAC etc
    – SeanClt
    Apr 13, 2016 at 20:18

3 Answers 3

5

wuauclt.exe /detectnow has been deprecated according to "Features Removed or Deprecated in Windows Server 2016" for Windows Server 2016 and likely by extension Windows 10.

The wuauclt.exe /detectnow command has been removed and is no longer supported. To trigger a scan for updates, do either of the following:

Run these PowerShell commands:

$AutoUpdates = New-Object -ComObject "Microsoft.Update.AutoUpdate"
$AutoUpdates.DetectNow()
3
  • doesn't work for me today. 'PS C:\Windows\system32> $AutoUpdates.DetectNow() Exception from HRESULT: 0x8024A10B At line:1 char:1 + $AutoUpdates.DetectNow() + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (:) [], COMException + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException' Dec 29, 2019 at 3:44
  • @arthurbrogard what Windows Build version are you using? Jan 28, 2020 at 17:35
  • @monterery harris v1909 b 18363.592 Jan 29, 2020 at 22:28
0

The complete Windows 10 way to deal with updates sucks. I suggest you to use the tool called Windows Update MiniTool which allows to search for updates and also select which updates you would like to be installed and allows to block updates like you could in former Windows versions.

enter image description here

An alternative to the standard Windows Update What you can do:
Check for updates
• Download updates
• Installing Updates
• Deleting installed updates
• Hiding unwanted updates
• Get direct links to the *.cab / *.Exe / *.Psf update files • View update history
• Configure Automatic Updates
• This tool is like the external powershell module PSWindowsUpdate, but much more advanced and user-friendly features
• The tool relies and use same WU infrastructure, all downloading are through WU it's not a downloader

0

It seems like WUAUCLT.EXE has been replaced by USOCLIENT.EXE

Thanks to Jean-Yves Moschetto from anvole.com.

The command to run now is

USOCLIENT.EXE RefreshSettings StartScan StartDownload StartInstall 

Sean Conroy from I don't know, read the manual has got additional info & command line options.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .