Import-VMHostProfile

This cmdlet imports a host profile from a file. The file path must be accessible from the VMware PowerCLI client side.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
Name
String 1
  • wildcards
  • Specifies a name of the imported host profile.
    required
    FilePath
    String named Specifies the path to the file, from which you want to import a host profile.
    optional
    ReferenceHost
    VMHost 2
  • wildcards
  • pipeline
  • Specifies a reference host for the imported host profile.
    optional
    Description
    String named
  • wildcards
  • Specifies a description for the imported 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

    Import-VMHostProfile -FilePath export.prf -Name Profile

    Imports a virtual machine host profile from the export.prf file and names it Profile.

    Related Commands

    Feedback

    Was this page helpful?