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: run window update from command line?

18 Jun 2012   #1
fluidmotion

Win7 Starter 32 bits
 
 
run window update from command line?

can Window Update be ran from command line?


My System SpecsSystem Spec
.

19 Jun 2012   #2
richnrockville

Windows 7 Pro x64 SP1
 
 

yes, you can run it from the command line

%windir%\system32\wuapp.exe startmenu

works but it brings up the gui

Rich
My System SpecsSystem Spec
19 Jun 2012   #3
fluidmotion

Win7 Starter 32 bits
 
 

-win.update.png

my win 7 update is set up like this.
do you know how my win 7 gets update notice?

Quote   Quote: Originally Posted by richnrockville View Post
yes, you can run it from the command line

%windir%\system32\wuapp.exe startmenu

works but it brings up the gui

Rich


My System SpecsSystem Spec
.


20 Jun 2012   #4
richnrockville

Windows 7 Pro x64 SP1
 
 

"my win 7 update is set up like this.
do you know how my win 7 gets update notice?"

What the update program does is check for updates when you boot your computer. the check for
updaters is most likely in the startup options on your system.

That's why the shield shows on the right side of your status bar when there are updates available.

Rich
My System SpecsSystem Spec
20 Jun 2012   #5
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

The screen you posted and RichnRockville described affects automatic updates. You can run Windows Update manually at any time to see if you're up-to-date.
My System SpecsSystem Spec
20 Jun 2012   #6
pjhutch

Windows 7 Home Premium 32bit
 
 
Windows update script

Here is a useful script to download and install Windows updates just from the command line:

Searching, Downloading, and Installing Updates (Windows)

Copy script to notepad and save it to WUA_SearchDownloadInstall.vbs.
Open a command prompt and type CSCRIPT WUA_SearchDownloadInstall.vbs
(dont' forget the CSCript command).
My System SpecsSystem Spec
21 Jun 2012   #7
fluidmotion

Win7 Starter 32 bits
 
 

i typed this command in command prompt, but this did not work.

-win-update-command-prompt.png

and
i clicked this file name in doc. lib.,
"searching for update..." showed up in command prompt.

-win-update.script.png


Quote   Quote: Originally Posted by pjhutch View Post
Here is a useful script to download and install Windows updates just from the command line:

Searching, Downloading, and Installing Updates (Windows)

Copy script to notepad and save it to WUA_SearchDownloadInstall.vbs.
Open a command prompt and type CSCRIPT WUA_SearchDownloadInstall.vbs
(dont' forget the CSCript command).


My System SpecsSystem Spec
21 Jun 2012   #8
pjhutch

Windows 7 Home Premium 32bit
 
 
running the script

You did not change directory to where the script was.

cd c:\Users\<your userid>\Documents
dir
cscript WUA_SearchDownloadInstall.vbs


My System SpecsSystem Spec
24 Jun 2012   #9
fluidmotion

Win7 Starter 32 bits
 
 

how do u change directory?

Quote   Quote: Originally Posted by pjhutch View Post
You did not change directory to where the script was.

cd c:\Users\<your userid>\Documents
dir
cscript WUA_SearchDownloadInstall.vbs


My System SpecsSystem Spec
25 Jun 2012   #10
pjhutch

Windows 7 Home Premium 32bit
 
 
Change dir

You run the CD command to change directory to where the script is saved to. To change drive just type C:, to change directory enter CD and then the path
e.g.
CD c:\Users\<your userid>\Documents
My System SpecsSystem Spec
Reply

 run window update from command line?




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
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
libraries and the command line
I am a long time programmer and computer science professor, since 1979. I grew up with the command line and like it just fine. But Windows 7 seems to change the GUI way of doing things and not mess with the command line. Yesterday I was at the command prompt and went to C:\users\Stockwell and...
Performance & Maintenance
Stop Command Line Window Message From Closing
I have a problem running a task with Task Scheduler. The task doesn't run. I have to debug it. When I try to make it run from the app a message appears on a command line message, but it appears and disappears so quickly that I can't read it. To fix the problem I need to read it to know what is...
General Discussion
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...
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 22:27.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App