OSBORNEPRO DOCUMENTATION

← All documentation

PowerShell module

Use PatchingWorkbench 0.5.0 to export update candidates for one or all saved environments with a session credential.

Active Workbench Pro access (paid or complimentary) and a read-only API credential from Account & Billing are required to call the API. The module requires PowerShell 7.6 and TLS 1.3.

Watch the PowerShell walkthrough on YouTube to see how to generate reports for saved environments and compare two exports for the same month.

Set up the module

  1. Download the PowerShell module ZIP and extract it.
  2. In the Workbench Environments panel, select Export environments and save the file as patch-environments.json beside the extracted module folder.
  3. Retrieve your API credential from your secret store as a SecureString named $ApiCredential.
Extract and import the module
Expand-Archive -LiteralPath ./PatchingWorkbench.zip -DestinationPath .
Import-Module -Name ./PatchingWorkbench/PatchingWorkbench.psd1
Set-WorkbenchApiCredential -ApiCredential $ApiCredential

The module holds the SecureString in memory for this session. Use Clear-WorkbenchApiCredential to clear it, or supply -ApiCredential for a single query or batch without replacing the saved value.

Check the saved environment before querying

After importing the module, run this in the folder containing patch-environments.json. You can check the installed module version and the filters in your file before connecting to the API.

Check the module and saved versions
Get-Module -Name PatchingWorkbench | Select-Object -Property Name, Version
Import-WorkbenchEnvironment -Path ./patch-environments.json |
    Select-Object -Property Name, Products, Architecture, SqlVersions, FrameworkVersions

Module 0.5.0 supports the optional SQL Server and .NET Framework lists. Older environment files still work. An empty or missing list includes all versions of that source. To use new selections, save the environment in Workbench and export it again. Application profiles are separate from these patch filters.

Fix an unsigned-module error on Windows

Under RemoteSigned, Windows can block extracted files marked as downloaded. After verifying the ZIP came from this guide and reviewing the extracted files, unblock the manifest and module from the extraction directory. Then retry the import.

Unblock and import the reviewed module
Unblock-File -LiteralPath ./PatchingWorkbench/PatchingWorkbench.psd1
Unblock-File -LiteralPath ./PatchingWorkbench/PatchingWorkbench.psm1
Import-Module -Name ./PatchingWorkbench/PatchingWorkbench.psd1
Set-WorkbenchApiCredential -ApiCredential $ApiCredential
Check execution policies
Get-ExecutionPolicy -List

If the effective policy is Restricted on a computer you manage and your organization permits the change, you can set RemoteSigned for your user. Group Policy takes precedence on managed devices.

Set the current user execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Module commands

After importing the module, use your exported profile name in place of Production. For a single-environment CSV, run the first four examples in order.

Set the API credential for this session
Set-WorkbenchApiCredential -ApiCredential $ApiCredential
Read a saved environment by name
$Environment = Import-WorkbenchEnvironment -Path ./patch-environments.json -Name 'Production'
Query update candidates for the release month
$Result = Get-WorkbenchUpdate -Environment $Environment -YearMonth '2026-11'
Write one query result to CSV
$Result | Export-WorkbenchUpdate -Path ./Production-updates.csv
Export an update report for every environment
Export-WorkbenchEnvironmentReport -EnvironmentPath ./patch-environments.json -OutputDirectory ./reports -YearMonth '2026-11'
Clear the session credential when finished
Clear-WorkbenchApiCredential
Show every command and its parameters
Get-Command -Module PatchingWorkbench -Syntax

Export update candidates for every environment

Run from the folder containing patch-environments.json. Choose any combination of windows, framework, and sqlserver.

Export update candidates for all environments
Export-WorkbenchEnvironmentReport -EnvironmentPath ./patch-environments.json `
    -OutputDirectory ./reports -YearMonth '2026-11' `
    -Sources 'windows', 'framework', 'sqlserver'

Each environment gets its own file, such as Production-2026-11-updates.csv. The default is the current calendar month. Use -YearMonth '2026-11' to choose a release month (-Month remains an alias), -Format Json for automation, or -Force to replace existing reports. To save the exact updates approved for a ticket, follow Recheck an approved change and keep the comparison file with the ticket.

Export CVE mappings for every environment

Export CVE mappings for all environments
Export-WorkbenchEnvironmentReport -EnvironmentPath ./patch-environments.json `
    -OutputDirectory ./reports -YearMonth '2026-11' -Report Cve

This produces files such as Production-2026-11-cve-mappings.csv. Each row is an update candidate with a CVE ID returned by the API. The month refers to the update release date.

Export one saved environment

Export updates for one environment
$Environment = Import-WorkbenchEnvironment -Path ./patch-environments.json -Name 'Production'
Get-WorkbenchUpdate -Environment $Environment -YearMonth '2026-11' |
    Export-WorkbenchUpdate -Path ./Production-updates.csv
Clear the credential when finished
Clear-WorkbenchApiCredential

Windows and .NET Framework candidates follow the saved OS and architecture. Installed Framework and SQL Server version selections narrow their respective candidate lists. SQL Server results can include multiple servicing branches. Verify installed builds and update applicability before using the CSV to plan a rollout.

API documentation · Saved Environments guide

Sources & methodology

Workbench schedules a daily refresh. Opening the briefing reads the last published snapshot. Check the date for the evidence you plan to use. A snapshot can include results from different checks.

Windows updates and CVEs

Workbench uses Microsoft Security Response Center (MSRC) advisories to match CVEs to a Windows product and KB. These mappings can be available even when the KB article is unreachable. In the free briefing, expand an update to see its mapped CVEs and advisory links. Counts apply to that KB and Windows version. The same CVE can appear in several rows.

Windows release dates

Workbench checks the date in the KB article or matches both the KB and OS build in Microsoft’s Windows release history. A matching Microsoft Graph product revision can also verify the date. If a source is unavailable, Workbench can retain an earlier verified date. Selecting a calendar month shows only Windows updates with a verified release date in that month.

CISA Known Exploited Vulnerabilities (KEV)

Workbench Pro checks each mapped CVE against CISA’s catalog. Yes means the CVE was listed at the recorded check. No means it was absent. Unknown means there is no verified result. Microsoft’s Exploited and Publicly disclosed fields come from MSRC.

Known issues and prerequisites

Workbench reads the known-issues section of the Microsoft KB and checks Windows release health through Microsoft Graph. It matches the Windows product and originating KB. Workbench Pro also identifies issues the KB resolves or mitigates when Microsoft supplies that relationship.

No matching issue in Graph means the lookup succeeded and found no originating issue for that product and KB. None listed requires an explicit statement in the KB. If a lookup fails, check the date on any retained review. Without a verified review, issue coverage is unknown.

The Prerequisite Checker uses Microsoft KB installation guidance to identify required updates, checkpoints and bundled servicing stack updates. Check the package architecture and installation method against your environment.

.NET Framework and SQL Server

Framework release and package mappings come from Microsoft’s dotnet/docs release notes on GitHub, with Microsoft Learn as a fallback. Release-wide guidance is shown separately from evidence for an individual KB. SQL Server builds come from Microsoft’s build workbook or version-specific build tables. MSRC mappings and package articles supply security and servicing evidence where available.

Coverage and summaries

In Workbench Pro, open Windows updates, SQL Server updates or .NET Framework updates and expand Source coverage and freshness. Each row shows which records have evidence and the dates available for those checks. For example, Windows CVE mappings can have a current MSRC check while the release health lookup is unavailable.

The free briefing covers the latest collected Windows release month and applicable Framework KBs. Driver, feature, preview and out-of-band coverage can be incomplete. Summaries use collected metadata. Follow the linked advisory or KB for full guidance.