Windows 10: A vbs script intended to check for updates does not work.

Page 1 of 2 12 LastLast
  1.    30 Oct 2016 #1

    A vbs script intended to check for updates does not work.


    The following vbs script was copied from this page.

    Set automaticUpdates = CreateObject("Microsoft.Update.AutoUpdate")
    automaticUpdates.DetectNow()

    It does not work at my end because no updates are shown as available when they are available.
    Does it work at your end?
      My ComputerSystem Spec

  2.    30 Oct 2016 #2

    Hi, can't comment on that, but a possibility if you want to launch windows update from a command line is this portable tool:
    Download Windows Update MiniTool - MajorGeeks

    Noted comment:
    Added cmd line arg -update for autostart search updates.
      My ComputerSystem Spec


  3. Posts : 22,867
    64-bit Windows 10 Pro build 16257
       30 Oct 2016 #3

    Hello Matthew,

    If you like, the Windows Update context menu below includes an item to "Check for updates".

    https://www.tenforums.com/tutorials/5...dows-10-a.html

    It uses the command below that you could also use to create a "Check for updates" shortcut if you like.

    explorer ms-settings:windowsupdate-action

    Check for updates in Windows Update shortcut - Create in Windows 10 - Windows 10 Forums
    Last edited by Brink; 07 Nov 2016 at 17:38.
      My ComputersSystem Spec

  4.    30 Oct 2016 #4

    dalchina said: View Post
    Added cmd line arg -update for autostart search updates.
    Can you explain how to do so in details? I am a computer idiot.

    Brink said: View Post
    explorer ms-settings:windowsupdate-action
    It works. Thanks!
      My ComputerSystem Spec


  5. Posts : 22,867
    64-bit Windows 10 Pro build 16257
       30 Oct 2016 #5

    You're most welcome.
      My ComputersSystem Spec

  6.    30 Oct 2016 #6

    I want it to automatically check for updates in the background and notify me only when an update is available to download.
    Can MiniTool do so? What is the command line? Please explain in detail.
      My ComputerSystem Spec

  7.    30 Oct 2016 #7

    I can only point you to it and say that that's what the change log says was added. Others have had success with the tool in general, sometimes when Windows update itself wasn't working. Having read your post, I thought of that tool and wondered if it had a command line option. Apparently so, beyond that you would need to read up on it - I've not used it myself.

    wumt_x64.exe -update
    - launches the program + scans for updates - I can't tell you if it applies a Windows update as I have none pending.

    I also had a quick look at commands that used to work, but a superficial attempt found nothing that did from a command prompt. I would expect there is sthg.
    Last edited by dalchina; 30 Oct 2016 at 13:40.
      My ComputerSystem Spec

  8.    31 Oct 2016 #8

    "D:\Matthew's folder\wumt_x64.exe -update"

    I ran the above command in a .bat file, but it did not work. What's wrong?
      My ComputerSystem Spec

  9.    31 Oct 2016 #9

    wumt_64.exe has to be in your programs path to be run like that. I.e. windows has to 'find' it.
    Or, you specify the exact path yourself.
    You can find suitable locations by typing echo %path% at a command prompt.
    I can only guess why it didn't work for you as you haven't said what error message if any you got.

    But this only scans for Windows updates- it doesn't apply them as far as I can tell.
    It's certainly an interesting program.
      My ComputerSystem Spec

  10.    31 Oct 2016 #10

    dalchina said: View Post
    wumt_64.exe has to be in your programs path to be run like that. I.e. windows has to 'find' it.
    wumt_64.exe is actually in this folder D:\Matthew's folder\
    It starts if the command is "D:\Matthew's folder\wumt_x64.exe"
    A prompt window disappears as soon as it appears if the command is "D:\Matthew's folder\wumt_x64.exe -update" And nothing else happens.
    dalchina said: View Post
    I can only guess why it didn't work for you as you haven't said what error message if any you got.
    No error message appears.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Check for updates only during system idle? in Windows Updates and Activation
Is there a way to program Windows to do this? The checking for updates (not to speak of actually downloading and installing them) can really slow down work on the computer.
windows spotlight works when locking the screen from the desktop. but will not show on the lockscreen when booting up. steps taking. refreshed system with deleting everything. sfc detected no problems dism no problems.
PC Shutdown script does not work in Software and Apps
Hi, I was used to run a script "at 20:30 shutdown -s" in Run.exe to shutdown my laptop at specific time in Windows 7, but in W10, it does not work. I tried to run this script in cmd.exe as administrator, but it does not work eather, because in...
Check for Updates is missing in Windows Updates and Activation
Hopefully somebody can point me in the right direction. I've been working with a handful of Windows 10 boxes through the various releases of the tech preview to clean installs using RTM media and I've had a recurring problem. Normally, to get...
may i know when does w10 check for updates? in Windows Updates and Activation
Hi may i know when does windows 10 check for updates? every days or every boot ? thanks
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:11.
Find Us