Use PowerShell to install Windows Updates

PowerShell_0-2360x800_c (Demo)
Advertisements by Google

PowerShell for Windows updates? Why would you want to do this other than the fact that it’s a cool thing to do? Well it’s fairly easy to do and can be easilly automated.

Firstly you will need version 5 of PowerShell which is apart of Windows 10. Since version 5 you can now download and install modules online from the PowerShell Gallery.

First thing you need to do is confirm the version of PowerShell you have:

1$PSVersionTable.PSVersion
Advertisements by Google

If version 5 or above, confirm you are running PowerShell as administrator and continue with:

12Install-Module PSWindowsUpdateGet-Command –module PSWindowsUpdate

Then you will need to register to use the Microsoft Update Service not just the default Windows Update Service.

1Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d

Then run:

1Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot
Advertisements by Google

Related Posts

Leave a comment

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.
%d bloggers like this: