GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cloudbase/WindowsUpdateCLI: Windows Update PowerShell tools

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
WindowsUpdates
WindowsUpdates
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

WindowsUpdates

A PowerShell Module for automated Windows Updates Management, which will offer:

  • Updates' retrieval
  • Updates' installation

How to use WindowsUpdates

Import-Module WindowsUpdates

$updates = Get-WindowsUpdate
if ($updates) {
    Install-WindowsUpdate $updates
    if (Get-RebootRequired) {
        Restart-Computer -Force
    }
}

If you want to exclude KBIDs and updates for specific hardware ID's

Import-Module WindowsUpdates

$updates = Get-WindowsUpdate -Verbose -ExcludeKBId @("KB2267602") -ExcludeHardwareId @("{084f01fa-e634-4d77-83ee-074817c03581}")

Compatibility

The WindowsUpdates module is compatible with PowerShell v2 or newer and tested with Windows version >= 6.1(Windows 7/2008R2 or newer).

How to run tests

You will need pester on your system. It should already be installed on your system if you are running Windows 10. If it is not:

Install-Package Pester

Running the actual tests:

powershell.exe -NonInteractive {Invoke-Pester}

This will run all tests without polluting your current shell environment. The -NonInteractive flag will make sure that any test that checks for mandatory parameters will not block the tests if run in an interactive session. This is not needed if you run this in a CI.

About

Windows Update PowerShell tools

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

17 stars

Watchers

3 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.