powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-ScsiController



NAME
Get-ScsiController

SYNOPSIS
Retrieves the virtual Scsi controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot
objects.

SYNTAX
Get-ScsiController [-HardDisk ] [[-VM] ] [[-Template] ] [[-Snapshot] pshot[]>] [-Id ] [-Name ] [-Server ] []


DESCRIPTION
Retrieves the virtual Scsi controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot
objects.


PARAMETERS
-HardDisk
Filter the SCSI controllers by the hard disks they belong to.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-VM
Filter the SCSI controllers by the virtual machines they belong to.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Template
Filter the SCSI controllers by the virtual machine templates they belong to.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Snapshot
Filter the SCSI controllers by the snapshots they belong to.

Required? false
Position? 3
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-Id
Specify the Ids of the SCSI controllers you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Name
Specify the names of the SCSI controllers you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
ScsiController


NOTES




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

C:\PS>Get-VM VM1, VM2 | Get-ScsiController


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





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

C:\PS>Get-VM VM | Get-Snapshot Snapshot | Get-ScsiController


Retrieves the SCSI controllers of a virtual machine snapshot.





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

C:\PS>$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: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-ScsiController.html
New-ScsiController
Set-ScsiController