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 VersionDetailed Description
This cmdlet modifies the image cache configuration for the given host profile.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
ImageCacheConfiguration | VMHostProfileImageCacheConfiguration[] | Specifies the configuration that you want to modify. | true | True (ByValue) | |
InstallationType | VMHostProfileInstallationType | Specifies the installation type that can be either stateless caching or statefull install. | true | False | |
DiskArguments | String | Specify 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. | false | False | |
IgnoreSsd | Boolean | Excludes solid-state disks from eligibility. | false | False | |
InstallationDevice | VMHostProfileInstallationDevice | Specifies the installation device that can be either on a host (Disk) or on a USB disk. | false | False | |
OverwriteVmfs | Boolean | Allows the system to overwrite existing VMFS volumes, if the space is not enough to store the image. | false | False | |
Server | VIServer[] | 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. | false | True (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.