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
drugo

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
Kari

Microsoft Community Contributor Award Recipient

 

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
drugo

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
-prova.jpg  
My System SpecsSystem Spec
.

07 Apr 2010   #4
Kari

Microsoft Community Contributor Award Recipient

 

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
manhunter2826

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
Kari

Microsoft Community Contributor Award Recipient

 

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
manhunter2826

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
drugo

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

Microsoft Community Contributor Award Recipient

 

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
Thread Forum
Command Line - Help
Hi Guy's and Girls, Just first off I've never been too good with CMD and only an Apprentice in my company I work for. Now something I've wanted to do for awhile was to make the following but I don't necassirealy I know how to do this in one batch file: I would need a Batch file that is...
General Discussion
run window update from command line?
can Window Update be ran from command line?
Windows Updates & Activation
Check Disk Force Dismount
Hello... i have been wondering .. i have 2 HDs installed in my PC... one which is labeled C: is for the system while the other which is labeled D: is for personal files e.g. documents, pictures, music and etc... So once in a while i usually do Chkdsk and defragmentation for both HDs and there is...
Performance & Maintenance
How can I set this via command-line or registry?
How can I set this via command-line or registry? I need a way to automatically launch "Explorer c:\folder\myfolder" with a view appropriate for long filenames on any Windows Vista/Win7 PC.
Customization
Windows Update by Command Line
In Windows 7, the normal way to start Windows Update is from Control Panel. However, is there a way to start Windows Update by command line instead, in Win 7? If someone knows, please put the exact command in your reply. Thanks in advance.
Windows Updates & Activation
Command Line
Is there a cmd.exe /switch for “run as administrator” ? Thanks-
General Discussion


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 11:36.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App