## PowerCLI Reference

# Set-ScsiLunPath

## Synopsis

This cmdlet configures a vmhba path to a SCSI device.

Syntax

Set-ScsiLunPath [[-Active] <Boolean>] [-ScsiLunPath] <ScsiLunPath[]> [-Preferred] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-ScsiLunPath
Get-ScsiLun
Set-ScsiLun

Detailed 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 objects

Notes

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.

Copyright © VMware, Inc. All rights reserved.