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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose Gabriel Ortega CastroCEOCommented:
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
Jose Gabriel Ortega CastroCEOCommented:
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
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Updates

From novice to tech pro — start learning today.