New-VMHostProfile

This cmdlet creates a new host profile based on a reference host.

Syntax

[-ReferenceHost]  <VMHost>
-Name  <String>
[-CompatibilityMode]
[-Description  <String>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
ReferenceHost
VMHost 1
  • wildcards
  • pipeline
  • Specifies the reference host, on which the new virtual machine host profile is based.
    required
    Name
    String named Specifies a name for the new host profile.
    optional
    CompatibilityMode
    SwitchParameter named If you are connected to a vCenter Server/ESX 5.0 or later, use this parameter to indicate that you want the new profile to be compatible with hosts running ESX/vCenter Server versions earlier than 5.0.
    optional
    Description
    String named Provides a description for the new host profile.
    optional
    Server
    VIServer[] named
  • wildcards
  • pipeline
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfile

    Examples


    Example 1

    $h = Get-VMHost 10.23.134.133
    New-VMHostProfile -Name testProfile -Description "This is my first test profile." -ReferenceHost $h

    Creates a profile based on the virtual machine host with an IP address 10.23.134.133.

    Related Commands

    Feedback

    Was this page helpful?