< Back

Get-ScsiController

Sun Jan 19, 2020 6:51 pm

NAME Get-ScsiController



SYNOPSIS

This cmdlet retrieves the virtual SCSI controllers assigned to the specified HardDisk, VirtualMachine, Template,

and Snapshot objects.





SYNTAX

Get-ScsiController [[-VM] <VirtualMachine[]>] [[-Template] <Template[]>] [[-Snapshot] <Snapshot[]>] [-HardDisk

<HardDisk[]>] [-Id <String[]>] [-Name <String[]>] [-Server <VIServer[]>] [<CommonParameters>]





DESCRIPTION

This cmdlet retrieves the virtual SCSI controllers assigned to the specified HardDisk, VirtualMachine, Template,

and Snapshot objects.





PARAMETERS

-HardDisk <HardDisk[]>

Filters the SCSI controllers by the hard disks they belong to.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Id <String[]>

Specifies the IDs of the SCSI controllers you want to retrieve.



Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that

matches exactly one of the string values in that list.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Name <String[]>

Specifies the names of the SCSI controllers you want to retrieve.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this

parameter, the command runs on the default servers. For more information about default servers, see the

description of Connect-VIServer.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Snapshot <Snapshot[]>

Filters the SCSI controllers by the snapshots they belong to.



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Template <Template[]>

Filters the SCSI controllers by the virtual machine templates they belong to.



Required? false

Position? 2

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



-VM <VirtualMachine[]>

Filters the SCSI controllers by the virtual machines they belong to.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



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







NOTES









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



Get-VM VM1, VM2 | Get-ScsiController



Retrieves the SCSI controllers of the VM1 and VM2 virtual machines.

-------------------------- Example 2 --------------------------



Get-VM VM | Get-Snapshot Snapshot | Get-ScsiController



Retrieves the SCSI controllers of a virtual machine snapshot.

-------------------------- Example 3 --------------------------



$disk = Get-VM VM | Get-HardDisk | Select -First 2



Get-ScsiController -HardDisk $disk



Retrieves the SCSI controllers of the first two hard disks of a virtual machine.



RELATED LINKS

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

New-ScsiController

Set-ScsiController