Get-Baseline

This cmdlet retrieves the baselines specified by the provided cmdlet parameters. There are two default dynamic patch baselines (Critical Host Patches (Predefined), and Non-Critical Host Patches(Predefined)) and three upgrade baselines (VMware Tools Upgrade to Match Host(Predefined), VM Hardware Upgrade to Match Host (Predefined),and VA Upgrade to Latest (Predefined)). You cannot edit or delete default baselines.

Syntax

[-BaselineContentType  <BaselineContentType[]>]
[-BaselineType  <BaselineType[]>]
[-Entity  <InventoryItem[]>]
[-Id  <Int32[]>]
[-Inherit]
[-Name  <String[]>]
[-Recurse]
[-Server  <VIServer[]>]
[-TargetType  <BaselineTargetType[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
BaselineContentType
BaselineContentType[] named Specifies the content type of the baselines you want to retrieve. The valid values are Dynamic, Static, and Both.
optional
BaselineType
BaselineType[] named Specifies the type of the baselines you want to retrieve. The valid values are Patch (patch baselines) and Upgrade (upgrade baselines).
optional
Entity
InventoryItem[] named
  • wildcards
  • pipeline
  • Specifies Template, VirtualMachine, VMHost, Cluster, Datacenter, Folder, and VApp objects to which the baselines you want to retrieve are attached.
    optional
    Id
    Int32[] named Specifies the IDs of the baselines 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.
    optional
    Inherit
    SwitchParameter named Specifies that you want to retrieve the baselines inherited by the parent inventory entities.
    optional
    Name
    String[] named
  • wildcards
  • Specifies the names of the baselines you want to retrieve.
    optional
    Recurse
    SwitchParameter named Specifies that you want to retrieve the baselines attached to the child inventory entities.
    optional
    Server
    VIServer[] named
  • wildcards
  • pipeline
  • 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.
    optional
    TargetType
    BaselineTargetType[] named Specifies the target type of the baselines you want to retrieve. The valid values are VM, Host, and VA.

    Output

    Examples


    Example 1

    Get-Baseline -Name *critical*

    Retrieves all baselines that contain "critical" in their names.

    Example 2

    Get-Baseline -TargetType Host -BaselineType Upgrade

    Retrieves the available host upgrade baselines on the default server.

    Example 3

    Get-Baseline -Entity VM -Inherit

    Retrieves the baselines that are attached directly to the VM virtual machine or are inherited by its parent objects.

    Example 4

    Get-Baseline -TargetType VM -BaselineType Upgrade

    Retrieves the default baselines (VMware Tools Upgrade to Match Host and VM Hardware Upgrade to Match Host).

    Related Commands

    Feedback

    Was this page helpful?