Windows 7 Forums


Windows 7: is there a command line to force to check up for update

07 Apr 2010   #1

windows 7 ultimate 32bit
 
 
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 System SpecsSystem Spec

07 Apr 2010   #2

Windows 7 x64 Ultimate
A Finnish immigrant in Leipzig, Germany
 
 

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 AM..
My System SpecsSystem Spec
07 Apr 2010   #3

windows 7 ultimate 32bit
 
 

Quote   Quote: Originally Posted by Kari View Post
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!
Quote:
C:\Windows\system32\wuapp.exe

OR

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


07 Apr 2010   #4

Windows 7 x64 Ultimate
A Finnish immigrant in Leipzig, Germany
 
 

Quote   Quote: Originally Posted by drugo View Post
thanks

but this opens the windows update window
it doesn't check for new updates!
Quote:
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 System SpecsSystem Spec
07 Apr 2010   #5

Windows XP - Now Windows 7 Home Premium (64-bit).
 
 

May I ask: any particular reason as to why? Is there a difference by checking/installing via the GUI.
My System SpecsSystem Spec
07 Apr 2010   #6

Windows 7 x64 Ultimate
A Finnish immigrant in Leipzig, Germany
 
 

Quote   Quote: Originally Posted by manhunter2826 View Post
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 System SpecsSystem Spec
07 Apr 2010   #7

Windows XP - Now Windows 7 Home Premium (64-bit).
 
 

^Thanks kindly Kari, very useful info and your script
My System SpecsSystem Spec
07 Apr 2010   #8

windows 7 ultimate 32bit
 
 

Quote   Quote: Originally Posted by Kari View Post
Quote   Quote: Originally Posted by manhunter2826 View Post
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
Attached Files
File Type: reg updateeveryboot.reg (354 Bytes, 1565 views)
My System SpecsSystem Spec
07 Apr 2010   #9

Windows 7 x64 Ultimate
A Finnish immigrant in Leipzig, Germany
 
 

Quote   Quote: Originally Posted by drugo View Post
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 System SpecsSystem Spec
Reply

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



Thread Tools



Similar help and support threads for: is there a command line to force to check up for update
Thread Forum
run window update from command line? Windows Updates & Activation
Gpedit via command line Performance & Maintenance
Windows Update by Command Line Windows Updates & Activation
libraries and the command line Performance & Maintenance
Command Line General Discussion


All times are GMT -5. The time now is 11:20 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32