powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Apply-ESXImageProfile



NAME
Apply-ESXImageProfile

SYNOPSIS
Associates the specified image profile with the specified ESXi system.

SYNTAX
Apply-ESXImageProfile [-ImageProfile] [-Entities] []


DESCRIPTION
Associates the specified image profile with the specified ESXi system. Currently, the Entities parameter can point
only to ESXi hosts.

You must have the "AutoDeploy.Profile.Edit" privilege on the root folder of vCenter Server to use this cmdlet.


PARAMETERS
-ImageProfile
Image profile to associate with the specified ESXi host.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Entities
Must be an ESXi host. Use the Get-VMHost PowerCLI cmdlet to find a host.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- Example 1 --------------

C:\PS> Apply-ESXImageProfile "MyImage" "h1","h2"


Associate the "MyImage" image profile with the hosts named "h1" and "h2".

-------------- Example 2 --------------

C:\PS> $img = Get-ESXImageProfile -Name "MyImage"
C:\PS> Apply-ESXImageProfile $img (Get-VMHost "h1")


Associate an image profile with the host named "h1" using PowerCLI objects.


RELATED LINKS
Get-ESXImageProfile
Get-VMHost