473,395 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Windows 10 Update From Command Line

Oralloy
988 Expert 512MB
Is there a simple command that I can use as Admin to cause my computer to fetch and apply all outstanding updates.

What was suggested is this, although it seems not to work:
Expand|Select|Wrap|Line Numbers
  1. wuauclt /DetectNow /UpdateNow 
  2.  
I also observe that the "/UpdateNow" option is not well documented in the sources that I've seen, so I do not even know if it applies to Windoze 10.

The goal is to have a simple file that I execute to update 40 machines. I would like to avoid the GUI, which is rather time-consuming.
Aug 23 '16 #1

✓ answered by Brilstern

Hello Oralloy,


wucauclt does not work in Windows 10 as it did in previous versions of Windows. I would recommend using the PowerShell approach:
Expand|Select|Wrap|Line Numbers
  1. (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()
Or you can run this a .vbs script.
Expand|Select|Wrap|Line Numbers
  1. Set automaticUpdates = CreateObject("Microsoft.Update.AutoUpdate") automaticUpdates.DetectNow()

2 4671
Brilstern
208 100+
Hello Oralloy,


wucauclt does not work in Windows 10 as it did in previous versions of Windows. I would recommend using the PowerShell approach:
Expand|Select|Wrap|Line Numbers
  1. (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()
Or you can run this a .vbs script.
Expand|Select|Wrap|Line Numbers
  1. Set automaticUpdates = CreateObject("Microsoft.Update.AutoUpdate") automaticUpdates.DetectNow()
Aug 24 '16 #2
Oralloy
988 Expert 512MB
Steven,

Thanks for making time to help me.

I see no output to screen when I run the power-shell command in the window. The call simply returned immediately.

Is that the expected result?

If not, what would I expect to see if there were waiting, outstanding upodates?

Thanks,
Oralloy
Aug 25 '16 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Tony C | last post by:
According to the help for pydoc, it can be run as a script, from the command line. "Or, at the shell command line outside of Python: Run "pydoc <name>" to show documentation on something" ...
2
by: Rolf Hemmerling | last post by:
Hello ! This question is about how to configure the most popular C++ compiler. If you think that I am wrong here, please tell me what newsgroup WITH relevant, existing AUDIENCE to ask again (...
7
by: Dave | last post by:
Does anyone know of a Windows compatible command line tool that capable of parsing Microsoft's VC++ workspace/project (e.g., .dsw, .dsp, .sln, ..vcproj, etc.) files and generating an...
2
by: Johann Blake | last post by:
This morning I ran Microsoft's Windows Update from http://v4.windowsupdate.microsoft.com/en/default.asp After hours of development, I have now discovered something horrible has happened with...
3
by: Jerry | last post by:
Well, here is some weirdness. First, I noticed that I have 2 Set keywords (silly me). so I removed the 2nd "Set" but still got a syntax error. Then I removed the Where clause, and now it works...
5
by: clsmith66 | last post by:
I've been asked to find out if a project is possible, but I'm not having much luck finding the information I need, I hope some one can help. I need to see if I can build a windows service on the...
3
by: Red2 | last post by:
Hey all, I have a windows application that I need to pass command line arguments to. However I can't get it to work. Does anyone have any example on how to do this. I can get it to work on a...
4
by: no_spam_for_gman | last post by:
Hi, I can turn off autocommit within the command window but I cannot figure out how to turn it off when you are in the IBM DB2 Command Line Processor. Does anybody knows how? By the way I mean...
2
by: explode | last post by:
I made nova oledbdataadapter select update insert and delete command and connection veza. dataset is Studenti1data, I made it by the new data source wizard,and made datagridview and bindingsource...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.