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

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
Confirm | SwitchParameter | If 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. | false | false
SoftwareIScsiEnabled | Boolean | Indicates that on this storage, software iSCSI is enabled. | true | false
VMHostStorage | VMHostStorageInfo[] | Specifies the host storage you want to configure. | true | true (ByValue)
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

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.