PowerCLI Reference

Set-VMHostStorage

Synopsis

This cmdlet configures a host storage.

Syntax

Set-VMHostStorage -SoftwareIScsiEnabled <Boolean> -VMHostStorage <VMHostStorageInfo[]> [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-VMHostStorage

Detailed Description

This cmdlet configures a host storage. The cmdlet enables or disables the software iSCSI support for the specified VMHostStorage objects.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
SoftwareIScsiEnabledBooleanIndicates that on this storage, software iSCSI is enabled.trueFalse
VMHostStorageVMHostStorageInfo[]Specifies the host storage you want to configure.trueTrue (ByValue)
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

Zero or more modified VMHostStorageInfo objects

Notes

Examples

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

Get-VMHostStorage 10.23.112.234 | Set-VMHostStorage -SoftwareIScsiEnabled $true

Enables the iSCSI on the specified storage.


Copyright © VMware, Inc. All rights reserved.