Syntax
Set-ScsiLunPath [[-Active] <Boolean>] [-ScsiLunPath] <ScsiLunPath[]> [-Preferred] [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet configures a vmhba path to a SCSI device.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Active | Boolean | Indicates that the specified path is active. | false | False | |
ScsiLunPath | ScsiLunPath[] | Specifies a path to the SCSI logical unit you want to configure. | true | True (ByValue) | |
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 | |
Preferred | SwitchParameter | Indicates that the specified path is preferred. Only one path can be preferred, so when a path is made preferred, the preference is removed from the previously preferred path. | false | False | |
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 ScsiLunPath objectsNotes
Examples
-------------------------- Example 1 --------------------------
$scsilun = Get-ScsiLun -VMHost 10.23.123.100 -LunType disk $scsipath = Get-ScsiLunPath -ScsiLun $scsilun Set-ScsiLunPath -ScsiLunPath $scsipath -Preferred $true
Sets the specified SCSI Lun path as preferred.