Patch.GetMetadata
Method | GetMetadata |
---|---|
Module | Patch |
Library | Core |
Action | Query metadata for a single patch or comma-separated list of patches. |
Parameters |
NoteFor Windows, this is a comma-separated list of Patch GUIDs. Case is not significant for the hex digits in GUIDs. |
Return values | For each update requested: |
| |
| |
| |
| |
| |
| |
NoteFor Windows, Knowledge Base article number(s). | |
| |
| |
| |
NoteAn example entry is 'MS14-059' (Where MS14 means Microsoft 2014 for example see https://docs.microsoft.com/en-us/security-updates/securitybulletins/2014/ms14-059) | |
| |
| |
| |
| |
| |
Example | Find the devices and their sources where software updates are configured: // A list of Patch Guids can also be provided: Patch.GetMetadata(PatchSpec:"ca10020a-becd-4535-b06d-e30e92f01ad6,f6c4261c-9fae-442c-9bfc-7b37ba42f806"); // The latest Patch history entries can be searched for their metadata. @entries = SELECT * FROM [Patch.History] WHERE ValidTo=0 AND KB != ""; FOREACH @entry IN @entries DO Patch.GetMetadata(PatchSpec:@entry.UpdateId); DONE; // The SQLite table maintained by Patch.GetMetadata can also be viewed directly: @entries = SELECT * FROM [Patch.Metadata]; FOREACH @entry IN @entries DO @json = SELECT Metadata FROM @entry; Utilities.TableFromJson(Json:@json); DONE; |
Platforms |
|
Notes |