< Back

Set-VMHostProfileImageCacheConfiguration

Sun Jan 19, 2020 7:11 pm

NAME 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>]





DESCRIPTION

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





PARAMETERS

-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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IgnoreSsd <Boolean>

Excludes solid-state disks from eligibility.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ImageCacheConfiguration <VMHostProfileImageCacheConfiguration[]>

Specifies the configuration that you want to modify.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-InstallationDevice <VMHostProfileInstallationDevice>

Specifies the installation device that can be either on a host (Disk) or on a USB disk.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InstallationType <VMHostProfileInstallationType>

Specifies the installation type that can be either stateless caching or statefull install.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OverwriteVmfs <Boolean>

Allows the system to overwrite existing VMFS volumes, if the space is not enough to store the image.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? 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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

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





VMware.VimAutomation.ViCore.Types.V1.VIServer[]







OUTPUTS

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







NOTES









-------------------------- 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.



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... ofile.html

Get-VMHostProfileImageCacheConfiguration