Windows Updates

Hello.

I can download and install updates on computer via GUI. Is it possible to do it via CMD?

Note: It's for Windows 7 and Windows 10 computers in non-domain enviroment. And I don't want any registry changes. :D

Thanks.
LVL 13
Hello ThereSystem AdministratorAsked:
Who is Participating?
 
Hello ThereSystem AdministratorAuthor Commented:
Issue solved.
I had to delete all superseded updates. After that and running my custom script (described above) solved my issue.
0
 
Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
No as Far as I know you should use the GUI, if you want to manage them that would be WSUS+AD solution.
0
 
Hello ThereSystem AdministratorAuthor Commented:
There is no way to do it?

Which command sequence would work in WSUS+AD environment?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

 
Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
They are easy to find out on the network, here's 2 examples
https://technet.microsoft.com/en-us/library/hh826166(v=wps.620).aspx
http://www.tomsitpro.com/articles/powershell-windows-software-update-services,1-3509.html

If there are more than 10 machines it is recommended to set them a AD server. (would be better to manage them using GPO and WSUS) instead of the pain going 1 by 1.
0
 
Hello ThereSystem AdministratorAuthor Commented:
What commands would you use?
0
 
Panagiotis ToumpaniarisSystem EngineerCommented:
First you need to install Windows Update PowerShell Module. In an updated (and connected to the internet) system this can be done by the simple :

PS > Import-Module PSWindowsUpdate

Open in new window


Then you can refer to this wonderful guide.

Possibly the most important function for getting and installing updates is Get-WUInstall. Help for each cmdlet is available, so to see full help for Get-WUInstall type Help Get-WUInstall –full and press Enter.

The guide is quite instructional, I'm certain you won't have any trouble.

Once you're up and running and set-up on all your clients you can PS-Exec to them with PS scripts to install updates.
Still consider an SCCM for more centralized control.

Hope it helps.
Panagiotis
1
 
Hello ThereSystem AdministratorAuthor Commented:
SCCM sounds great but I need free solution.
0
 
JohnBusiness Consultant (Owner)Commented:
It's for Windows 7 and Windows 10 computers in non-domain enviroment. And I don't want any registry changes.  ... I need free solution.

Set Windows Updates to Automatic and the restart time to 3:00am.  All done. Users can leave their machines turned ON overnight the second Tuesday of each month.
2
 
Hello ThereSystem AdministratorAuthor Commented:
Info update:

Computers have been put to a domain.

I made a batch file and run it on all domain devices:
net stop wuauserv
net start wuauserv
wuauclt /resetauthorization /detectnow
wuauclt /reportnow

It did work on 90% of devices. The rest of them isn't just updating.

Also I've waited a couple of days for any changes. Nothing happened.
0
 
Hello ThereSystem AdministratorAuthor Commented:
We still continue...
0
 
serialbandCommented:
It doesn't look like you tried the powershell method as previously suggested.
0
 
Hello ThereSystem AdministratorAuthor Commented:
The problem with Windows Update PowerShell Module is that only 50% of computers have Internet connection. So this is not for me.
Besides I guess it requires to install this module to all PCs. I am not going to do that.

Why are you searching for alternative solution while WSUS should work, should be enough for this? Why not to focus on WSUS? I'd like to have WSUS working. So please help me with this.

As I said, I am open up only to free solutions.
0
 
als315Commented:
Can you upload windowsupdate.log from your computers, where updates do not work?
In Windows 10 you can use powershell command Get-WindowsUpdateLog
0
 
serialbandCommented:
Sorry, I only answered that based on your original question requirements.  I didn't know you had additional requirements.

Another alternative, if you're not wedded to WSUS, is to manually download the patch on one system and install them on the others with psexec.exe.
0
 
DonNetwork AdministratorCommented:
Just an FYI that starting with WIndows 10 1709 using the commands below will no longer be valid

wuauclt /resetauthorization /detectnow
 wuauclt /reportnow

You will have to use UsoClient.exe startscan

http://myitforum.com/myitforumwp/2017/11/16/usoclient-command-line-scan-options/
1
 
Hello ThereSystem AdministratorAuthor Commented:
solved
0
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.