Name | Description | Required? | Pipeline Input | Default Value |
---|
SearchPhrase | Specifies phrases that are contained in the Name, Description, Id, and Vendor properties of the patches you want to retrieve. Use commas to separate multiple phrases. | false | false | |
Id | Specifies the IDs of the patches you want to retrieve.
Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list. | false | false | |
Baseline | Specifies baselines to which the patches you want to retrieve belong. | false | true (ByValue) | |
Severity | Specifies the severity of the patches you want to retrieve. The valid values are NotApplicable, Low, Moderate, Important, Critical, HostGeneral, and HostSecurity. | false | false | |
Product | Specifies the names of software products for which you want to retrieve patches. | false | false | |
After | Indicates that you want to retrieve only patches released after the date specified by this parameter. | false | false | |
Before | Indicates that you want to retrieve only patches released before the date specified by this parameter. | false | false | |
TargetType | Specifies the target type of the patches you want to retrieve. The valid value is Host. This parameter is deprecated and will be removed in a following release. | false | false | |
Vendor | Specifies the vendors of the patches you want to retrieve. | false | false | |
InstallationImpact | Specifies the installation impact of the patches you want to retrieve. The valid values are HostdRestart, Reboot, MaintenanceMode, MaintenanceModeHostdRestart, MaintenanceModeInstall, MaintenanceModeUpdate, and FaultToleranceCompatibiliy. | false | false | |
BundleType | Specifies the bundle type of the patches you want to retrieve. The valid values are Patch, Rollup, Update, Extension, and Upgrade. | false | false | |
Category | Specifies the categories of the patches you want to retrieve. The valid values are SecurityFix, BugFix, Enhancement, and Other. | false | false | |
Server | Specifies the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. | false | true (ByValue) | |
-------------- Example 1 --------------
Get-Patch -SearchPhrase "ESX40-MMODE" -Severity critical -Product "esx 4.0.*" -After 10.11.2007
Retrieves the critical esx 4.0.* patches released after 10.11.2007, that contain "ESX40-MMODE" in their properties.
-------------- Example 2 --------------
Get-Baseline -Id 2| Get-Patch
Retrieves all Patch objects included in the baseline with ID 2.
-------------- Example 3 --------------
Get-Patch -Severity critical -InstallationImpact Reboot
Retrieves the critical host patches whose installation reboots the host.