Syntax
Set-PatchBaseline [-Baseline] <PatchBaseline> [-Name <String>] [-Description <String>] [-IncludePatch <Patch[]>] [-ExcludePatch <Patch[]>] [-SearchPatchStartDate <DateTime>] [-SearchPatchEndDate <DateTime>] [-SearchPatchProduct <String[]>] [-SearchPatchSeverity <PatchSeverity[]>] [-SearchPatchVendor <String[]>] [-SearchPatchCategory <UpdateCategory[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet modifies the properties of a patch baseline. You can specify explicitly the patches you want to include in the baseline through the IncludePatch parameter. Also, you can use the SearchPatch* parameters to filter the patches you want to include by their properties, product, vendor, severity, and release date. Note that patches that have been excluded through the ExcludePatch parameter will not be included even if they correspond to the filter defined by the SearchPatch* parameters.Parameters
Return Type
VMware.VumAutomation.Types.PatchBaselineNotes
Examples
-------------- Example 1 --------------
Get-PatchBaseline -Name "Test Baseline" | Set-PatchBaseline -Name "Old Test Baseline"
Retrieves a baseline and and changes its name.
-------------- Example 2 --------------
Get-PatchBaseline -Name Baseline | Set-PatchBaseline SearchPatchEndDate 1.1.2002"
Retrieves a baseline and sets its SearchPatchEndDate property.
-------------- Example 3 --------------
$patches = Get-Patch -Id 1,2,3 $baseline = Get-PatchBaseline -Name Baseline Set-PatchBaseline -Baseline $baseline -IncludePatch $patches
Updates the patches included in the baseline.
-------------- Example 4 --------------
$baseline = Get-PatchBaseline -Name Baseline Set-PatchBaseline -Baseline $baseline -SearchPatchVendor *micro*"
Sets the baseline SearchPatchVendor property using wildcards.