Skip to main content

Get Patch Config

Summary​

This Automate implementation of the Get-PatchConfig agnostic script effectively retrieves and stores the essential data needed to validate the changes made by the WUA Settings Validation script into a custom table.

Update Notice: 29-Oct-2024​

The script has been updated to indicate whether Windows upgrades or feature updates are restricted from the registry key for Windows 10 and 11.
Reference: Windows Update Policy

Execute the script against any online Windows computer with the Set_Environment parameter set to 1. This will add the newly introduced column upgradeRestricted to the pvl_patch_config table, which is necessary for the solution.

Image

Sample Run​

First Execution: Execute the script against any online Windows computer with the Set_Environment parameter set to 1. This will create the pvl_patch_config table, which is necessary for the solution.

Image

Regular Execution:
Image

Dependencies​

Get-PatchConfig

Variables​

NameDescription
TableNamepvl_patch_config
ProjectNameGet-PatchConfig
WorkingDirectoryC:/ProgramData/_Automation/Script/Get-PatchConfig

User Parameters​

NameExampleRequiredDescription
Set_Environment1True (For first execution)Execute the script with this parameter set to 1 after importing it to create the pvl_patch_config table.

Output​

  • Script log
  • Local file on computer
  • Custom Table
  • Dataview

Changelog​

2026-03-23​

  • Code Signed the PowerShell script.

2025-04-10​

  • Initial version of the document