is there a command line to force to check up for update

Page 1 of 2 12 LastLast

  1. Posts : 476
    windows 7 ultimate 64bit
       #1

    is there a command line to force to check up for update


    Hi

    is there a command line to force windows 7 to check for updates?

    i know it checks ever day for update while xp at every boot

    well is there a command line to run in the start menu or schedule to force windows7 to check?

    i know i can click on the update module to perform an immediately check
    but i'm looking for a command line , or the name of program (exe) that start to check up

    thanks
    best regards
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #2

    To start Windows Update application from command line:
    Code:
    C:\Windows\system32\wuapp.exe 
    
    OR
    
    %windir%\system32\wuapp.exe 
    Notice: this only opens the update application and checks available updates. It does not install them.


    To install important updates automatically from command line:
    Code:
    C:\Windows\system32\wuauclt.exe /detectnow
    
    OR
    
    %windir%\system32\wuauclt.exe /detectnow
    Automatic updates must be enabled in order to be able to use this command.

    Kari
    Last edited by Kari; 07 Apr 2010 at 05:37.
      My Computer


  3. Posts : 476
    windows 7 ultimate 64bit
    Thread Starter
       #3

    Kari said:
    To start Windows Update application from command line:
    Code:
    C:\Windows\system32\wuapp.exe 
    
    OR
    
    %windir%\system32\wuapp.exe
    To install important updates automatically from command line:
    Code:
    C:\Windows\system32\wuauclt.exe /detectnow
    
    OR
    
    %windir%\system32\wuauclt.exe /detectnow
    Automatic updates must be enabled in order to be able to use this command.

    Kari
    thanks

    but this opens the windows update window
    it doesn't check for new updates!
    C:\Windows\system32\wuapp.exe

    OR

    %windir%\system32\wuapp.exe
    i have this settings
    Attached Thumbnails Attached Thumbnails is there a command line to force to check up for update-prova.jpg  
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    drugo said:
    thanks

    but this opens the windows update window
    it doesn't check for new updates!
    C:\Windows\system32\wuapp.exe

    OR

    %windir%\system32\wuapp.exe
    i have this settings
    Yes it checks if there are any updates available. It does not install them.

    You setting should be enough for command line automatic update to work.

    Kari
      My Computer


  5. Posts : 2,127
    Windows XP - Now Windows 7 Home Premium (64-bit).
       #5

    May I ask: any particular reason as to why? Is there a difference by checking/installing via the GUI.
      My Computer


  6. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #6

    manhunter2826 said:
    May I ask: any particular reason as to why? Is there a difference by checking/installing via the GUI.
    I want that all important updates are installed as soon as they are available. That's why I have a batch file in all of my Vista and Seven machines (real and virtual ones) that I can launch when I want to shut down the computer, first checking available important updates and installing them. Doing this I know my systems are always updated.

    I've placed a shortcut on desktop, and most often instead of choosing Shutdown from Start Menu, I just double click this shortcut to shut down the machine.

    The batchfile:
    Code:
    %windir%\system32\wuauclt.exe /detectnow
    shutdown -s
    (this checks if important updates are available, and installs them if answer was yes, shutting then computer down first closing all apps)


    Kari
      My Computer


  7. Posts : 2,127
    Windows XP - Now Windows 7 Home Premium (64-bit).
       #7

    ^Thanks kindly Kari, very useful info and your script
      My Computer


  8. Posts : 476
    windows 7 ultimate 64bit
    Thread Starter
       #8

    Kari said:
    manhunter2826 said:
    May I ask: any particular reason as to why? Is there a difference by checking/installing via the GUI.
    I want that all important updates are installed as soon as they are available. That's why I have a batch file in all of my Vista and Seven machines (real and virtual ones) that I can launch when I want to shut down the computer, first checking available important updates and installing them. Doing this I know my systems are always updated.

    I've placed a shortcut on desktop, and most often instead of choosing Shutdown from Start Menu, I just double click this shortcut to shut down the machine.

    The batchfile:
    Code:
    %windir%\system32\wuauclt.exe /detectnow
    shutdown -s
    (this checks if important updates are available, and installs them if answer was yes, shutting then computer down first closing all apps)


    Kari
    you can run this
    this checks for update at every boot
    is there a command line to force to check up for update Attached Files
      My Computer


  9. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #9

    drugo said:
    you can run this
    this checks for update at every boot
    I understood from your original question you didn't know how to do that. That's why I posted those batch files.

    Your attached file modifies registry, and does check the updates when machine is booted.

    I do not want to add something to my registry, and I do not want to check updates when booting because installing updates most often requires a shut down or reboot. My method is IMO more practical because you'll run it when shutting down, and there's no registry editing involved.

    Kari
      My Computer


  10. Posts : 242
    win7 Home Premium x64
       #10

    Hey Kari! Did a batch with this: %windir%\system32\wuauclt.exe /detectnow
    shutdown -s


    But does not install all outstanding updates. This is the right script, correct?
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

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