OSBORNEPRO 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
- Download the PowerShell module ZIP and extract it.
- In the Workbench Environments panel, select Export environments and save the file as
patch-environments.jsonbeside the extracted module folder. - Retrieve your API credential from your secret store as a
SecureStringnamed$ApiCredential.
Expand-Archive -LiteralPath ./PatchingWorkbench.zip -DestinationPath .
Import-Module -Name ./PatchingWorkbench/PatchingWorkbench.psd1
Set-WorkbenchApiCredential -ApiCredential $ApiCredentialThe 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.
Get-Module -Name PatchingWorkbench | Select-Object -Property Name, Version
Import-WorkbenchEnvironment -Path ./patch-environments.json |
Select-Object -Property Name, Products, Architecture, SqlVersions, FrameworkVersionsModule 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-File -LiteralPath ./PatchingWorkbench/PatchingWorkbench.psd1
Unblock-File -LiteralPath ./PatchingWorkbench/PatchingWorkbench.psm1
Import-Module -Name ./PatchingWorkbench/PatchingWorkbench.psd1
Set-WorkbenchApiCredential -ApiCredential $ApiCredentialGet-ExecutionPolicy -ListIf 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-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserModule 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-WorkbenchApiCredential -ApiCredential $ApiCredential$Environment = Import-WorkbenchEnvironment -Path ./patch-environments.json -Name 'Production'$Result = Get-WorkbenchUpdate -Environment $Environment -YearMonth '2026-11'$Result | Export-WorkbenchUpdate -Path ./Production-updates.csvExport-WorkbenchEnvironmentReport -EnvironmentPath ./patch-environments.json -OutputDirectory ./reports -YearMonth '2026-11'Clear-WorkbenchApiCredentialGet-Command -Module PatchingWorkbench -SyntaxExport update candidates for every environment
Run from the folder containing patch-environments.json. Choose any combination of windows, framework, and sqlserver.
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-WorkbenchEnvironmentReport -EnvironmentPath ./patch-environments.json `
-OutputDirectory ./reports -YearMonth '2026-11' -Report CveThis 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
$Environment = Import-WorkbenchEnvironment -Path ./patch-environments.json -Name 'Production'
Get-WorkbenchUpdate -Environment $Environment -YearMonth '2026-11' |
Export-WorkbenchUpdate -Path ./Production-updates.csvClear-WorkbenchApiCredentialWindows 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.