< Back

Set-ScsiController

Sun Jan 19, 2020 7:08 pm

NAME Set-ScsiController



SYNOPSIS

This cmdlet modifies the specified SCSI controllers.





SYNTAX

Set-ScsiController [-ScsiController] <ScsiController[]> [-BusSharingMode <ScsiBusSharingMode>] [-Type

<ScsiControllerType>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

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.





PARAMETERS

-BusSharingMode <ScsiBusSharingMode>

Specifies the bus sharing mode of the SCSI controller. The valid values are NoSharing, Physical, and Virtual.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ScsiController <ScsiController[]>

Specifies the SCSI controller you want to modify.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Type <ScsiControllerType>

Specifies the type of the SCSI controller. The valid values are ParaVirtual, VirtualBusLogic, VirtualLsiLogic,

and VirtualLsiLogicSAS.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are

modified.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more modified ScsiController objects







NOTES









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

Online Version: https://code.vmware.com/doc/preview?id= ... oller.html

Get-ScsiController

New-ScsiController