Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

07 Apr 2010   #1

windows 7 ultimate 64bit
 
 
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

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

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

windows 7 ultimate 64bit
 
 

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

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

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

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

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 64bit
 
 

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, 1589 views)
My System SpecsSystem Spec
07 Apr 2010   #9

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

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




Thread Tools



Similar help and support threads for2: is there a command line to force to check up for update
Thread Forum
run window update from command line? Windows Updates & Activation
UAC bug with runas from command line? General Discussion
Solved Check Disk Force Dismount Performance & Maintenance
Gpedit via command line Performance & Maintenance
Windows Update by Command Line Windows Updates & Activation
Command Line General Discussion
Can you boot from the command line? Chillout Room

Our Sites

Site Links

About Us

Find 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 07:01 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33