PowerCLI Reference

Set-VMHostStorage

Synopsis

This cmdlet configures a host storage.

Syntax

Set-VMHostStorage -VMHostStorage <VMHostStorageInfo[]> -SoftwareIScsiEnabled <Boolean> [-WhatIf] [-Confirm] [<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.