Link to home
Start Free TrialLog in
Avatar of hypercube
hypercubeFlag for United States of America

asked on

Windows Updates Status by Computer - PowerShell or ..... ?

We have a number of peer-to-peer networks - mostly Windows 10 Pro.
We are using WMI for monitoring events/logs, etc.
We can see Windows update *events* but this doesn't give us Windows update *status* in any direct or easily readable/understandable way.

I suppose the ideal would be a readout of the Settings/Update & Security/Update Status where it says:
- Your device is up to date
- Updates are available
- [are there others?]

And then somehow to report that updates had failed.  Perhaps this can be parsed from the Update history?

And then, as an option, show update history.

How can this be done?  PowerShell is fine with me / preferable I think....
SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Check out the Windows Update PowerShell Module at https://gallery.technet.microsoft.com/2d191bcd-3308-4edd-9de2-88dff796b0bc

You can use the results from the commands to get the data you want for your report.
Avatar of hypercube

ASKER

footech:  Perhaps I'm a bit dense.  What "results" were you imagining would be helpful in reaching the objective?
It can get which updates are already installed, updates which need to be installed, whether the computer needs to be rebooted.
For example, if no updates need to be installed, then it's up to date.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hector2016:  I read the script and it looks like it could do what we need.  But, it would help me get some context if you might give a "30,000 foot" i.e. high altitude perspective on it just getting started.

I should emphasize once more that all of this is being done on a peer-to-peer network.

Here we will sort the list of computers by name
So, the implication of this is that the script is running on the "server" computer.  That would be good.  So I'm trying to figure out how the interaction takes place between the server computer / script and the individual computers.  Is there are list of them initially or....?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!
Avatar of Hector2016
Hector2016

If you feel this question is solved, please close it and assign the points.
As soon as you said: "Install Windows Server 2012R2" it took me out of the peer-to-peer context.  But perhaps you had another idea?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks all.  I'm doing this piece by piece and not as a full-time job.  So it's taking a little time to try things, etc.  It looks like we're making progress!
Why would a comment that the author said wouldn't work for his environment be proposed as the answer?
If anything, using the COM objects to search Windows (or Microsoft) Update is the best course for a workgroup environment, but a lot would have to be written to do all the comparisons and reporting desired.  If the author can't report back, there's no reasonable expectation that any of the (partial) proposed solutions could be confirmed as the answer.

As such this question should be deleted.  Shame when even the long-standing active members can't close their questions.
Thanks all!