Can Windows Update be run from the command line?

Can Windows Update be run from the command line?



I have Genuine to question to ask all the people who updates their windows Online,I will be very straight to the question,Can we run the Windows update through Command line.

I hope this possible but not confirm about it and even though it is possible then person who knows in an out of the command line can update through the command line?

So,please provide your suggestion friends!

Thanks in Advance!
Who is Participating?

Improve company productivity with a Business Account.Sign Up

woolnoirConnect With a Mentor Commented:
the utility i posted ( ) can be used as part of a login or logoff screen to do the updates silently and without user interruption.

Or you can use the windows software update service (WSUS) which does it in the background, but not from the command line.
Strictly no.. as it uses IE for for a lot of the interaction.

you could try this which does a lot of the stuff via CLI
wuauclt.exe /detectnow /resetauthorization
might work for you
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Any of these suggestions useful ?
shivani98Author Commented:
Sir basically i want to update my OS Updatation . so is there any command which will update OS Silentely.
DonNetwork AdministratorCommented:
A useful way to use the wuinstall along with psexec( would be like so:

psexec \\* -c -f -s -d \\server\share\wuinstall.exe /install <<<"*" is a wildcard for whole domain

psexec @c:\computers.txt -c -f -s -d \\server\share\wuinstall.exe /install<<<would be a way to run on all non-servers(Computers.txt would have this list one per line)
shivani98Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.