powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-VMHostStorage



NAME
Set-VMHostStorage

SYNOPSIS
Configures a host storage.

SYNTAX
Set-VMHostStorage -VMHostStorage -SoftwareIScsiEnabled [] [-WhatIf] [-Confirm] [ monParameters>]


DESCRIPTION
Configures a host storage. The cmdlet enables or disables the software iSCSI support for the specified VMHostStorag
e objects.


PARAMETERS
-VMHostStorage
Specify the host storage you want to configure.

Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-SoftwareIScsiEnabled []
Indicate that on this storage, software iSCSI is enabled.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

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

Required? false
Position? named
Default value $true
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
VMHostStorageInfo[]


NOTES




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

C:\PS>Get-VMHostStorage 10.23.112.234 | Set-VMHostStorage -SoftwareIScsiEnabled $true


Enables the iSCSI on the specified storage.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Set-VMHostStorage.html
Get-VMHostStorage