PowerCLI Reference

Set-VMHostProfileImageCacheConfiguration

Synopsis

This cmdlet modifies image cache configuration for given host profile.

Syntax

Set-VMHostProfileImageCacheConfiguration [-ImageCacheConfiguration] <VMHostProfileImageCacheConfiguration[]> [-InstallationType] {StatelessCaching | StatefulInstall | Default} [-DiskArguments <String>] [-IgnoreSsd <Boolean>] [-InstallationDevice {None | Disk | Usb}] [-OverwriteVmfs <Boolean>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online Version
Get-VMHostProfileImageCacheConfiguration

Detailed Description

This cmdlet modifies the image cache configuration for the given host profile.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ImageCacheConfigurationVMHostProfileImageCacheConfiguration[]Specifies the configuration that you want to modify.trueTrue (ByValue)
InstallationTypeVMHostProfileInstallationTypeSpecifies the installation type that can be either stateless caching or statefull install.trueFalse
DiskArgumentsStringSpecify a comma-separated list of disks that you want to use based on your order of preference. You can specify more than one disk. Default value is the local disk for this argument.falseFalse
IgnoreSsdBooleanExcludes solid-state disks from eligibility.falseFalse
InstallationDeviceVMHostProfileInstallationDeviceSpecifies the installation device that can be either on a host (Disk) or on a USB disk.falseFalse
OverwriteVmfsBooleanAllows the system to overwrite existing VMFS volumes, if the space is not enough to store the image.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseTrue (ByValue)

Return Type

VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileImageCacheConfiguration[]

Notes

Examples

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

PS C:\> $conf = Get-VMHostProfileImageCacheConfiguration -HostProfile "Host_Profile"

PS C:\> Set-VMHostProfileImageCacheConfiguration -ImageCacheConfiguration $conf -InstallationType StatelessCaching -InstallationDevice Disk

Modifies the image cache configuration by setting the installation type to stateless and device type to Disk for the host profile named Host_Profile.


Copyright © VMware, Inc. All rights reserved.