Powershell Windows Updates

Published: Sep 12, 2022 by Bertland Hope

1st: We need to install the PSWindowsUpdate module,

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

Step2: Job that silently installs C++ 2015-2019 runtime

Your code goes here!

Step3: Powershell

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module PSWindowsUpdate -Force

import-module PSWindowsUpdate -force
get-wulist -microsoftupdate

$GWU = Get-WuList -MicrosoftUpdate

Step4: Install ALL available updates [no reboot]

import-module PSWindowsUpdate -force
get-wulist -microsoftupdate -acceptall -install -ignorereboot

Share

Latest News

10 Ways the ICT Performance Boost for Vision 2030 Jamaica Can Save You Money!
10 Ways the ICT Performance Boost for Vision 2030 Jamaica Can Save You Money!

10 Ways the ICT Performance Boost for Vision 2030 Jamaica Can Save You Money

What is a Constellation?
What is a Constellation?

What is a Constellation?

How are Pearls formed?
How are Pearls formed?

How are Pearls formed?

Chicken Back Gravy and Such Delights: Life Lessons From My Journey

Chicken Back Gravy and Such Delights: Life Lessons From My Journey

By Donna P. Hope

From $6.74

Inna Di Dancehall: Popular Culture And the Politics of Identity in Jamaica

Inna Di Dancehall: Popular Culture And the Politics of Identity in Jamaica

Donna P. Hope

From $22.96