Windows Update Last Installed

Published: Dec 10, 2021 by Bertland Hope

Installs the PSWindowsUpdate module, then runs the following cmdlets:

  • Get-WULastResults
  • Get-WURebootStatus

    & ‘.\Install and Import Module.ps1’ -ModuleName “PSWindowsUpdate”

    # Store results in a temp variable $lastResults = Get-WULastResults

    #organize results in a PSCustomObject [PSCustomObject]@{ LastInstallationDate = [DateTime] $lastResults.LastInstallationSuccessDate LastScanSuccessDate = [DateTime] $lastResults.LastSearchSuccessDate IsPendingReboot = [Bool] (Get-WURebootStatus -Silent) }

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