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

Page 1 of 2 12 LastLast

  1. Posts : 7,607
    Windows 10 Home 20H2
       #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 Computer


  2. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #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 Computers


  3. Posts : 68,962
    64-bit Windows 11 Pro for Workstations
       #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 Computers


  4. Posts : 7,607
    Windows 10 Home 20H2
    Thread Starter
       #4

    dalchina said:
    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:
    explorer ms-settings:windowsupdate-action
    It works. Thanks!
      My Computer


  5. Posts : 68,962
    64-bit Windows 11 Pro for Workstations
       #5

    You're most welcome. :)
      My Computers


  6. Posts : 7,607
    Windows 10 Home 20H2
    Thread Starter
       #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 Computer


  7. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #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 Computers


  8. Posts : 7,607
    Windows 10 Home 20H2
    Thread Starter
       #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 Computer


  9. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #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 Computers


  10. Posts : 7,607
    Windows 10 Home 20H2
    Thread Starter
       #10

    dalchina said:
    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:
    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 Computer


 

  Related Discussions
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 11:12.
Find Us




Windows 10 Forums