Set-ScsiController Command | Vmware PowerCLI Reference

Set-ScsiController

This cmdlet modifies the specified SCSI controllers. Set-ScsiController cannot set both the Type and BusSharing parameters at the same time. First run the cmdlet to set the type and then run it again to configure the bus sharing mode.

Syntax

Set-ScsiController
-ScsiController < ScsiController[] >
[-BusSharingMode < ScsiBusSharingMode > ]
[-ProgressAction < ActionPreference > ]
[-Type < ScsiControllerType > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
ScsiController ScsiController[] named
  • pipeline
Specifies the SCSI controller you want to modify.
optional BusSharingMode ScsiBusSharingMode named
Specifies the bus sharing mode of the SCSI controller. The valid values are NoSharing, Physical, and Virtual.
optional ProgressAction ActionPreference named
optional Type ScsiControllerType named
Specifies the type of the SCSI controller. The valid values are ParaVirtual, VirtualBusLogic, VirtualLsiLogic, and VirtualLsiLogicSAS.

Output

VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.ScsiController

Examples

Example 1

Get-ScsiController -VM VM | Set-ScsiController -BusSharingMode Physical

Configures the bus sharing mode of the SCSI controllers of a virtual machine to Physical mode.

Example 2

$scsiController = Get-HardDisk -VM VM | Select -First 1 | Get-ScsiController

Set-ScsiController -ScsiController $scsiController -Type VirtualLsiLogic

Changes the type of the SCSI controller of the first hard disk of the VM virtual machine to VirtualLsiLogic.

Related Commands

ScsiController

This cmdlet retrieves the virtual SCSI controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot objects.

This cmdlet creates a new SCSI controller.

This cmdlet modifies the specified SCSI controllers.

ScsiLun

This cmdlet retrieves the SCSI devices available on the vCenter Server system.

This cmdlet modifies the configuration of a SCSI device.

ScsiLunPath

This cmdlet retrieves the list of vmhba paths to a specified SCSI device.

This cmdlet configures a vmhba path to a SCSI device.