Get-SCVirtualScsiAdapter

Gets a VMM virtual SCSI adapter object from a virtual machine, virtual machine template, or hardware profile. 

Description

The Get-SCVirtualScsiAdapter cmflet gets one or more virtual SCSI adapter objects used in a System Center Virtual Machine Manager (VMM) environment from a virtual machine object, a virtual machine template object, or from a hardware profile object. 

A virtual machine on a Citrix XenServer host always has one virtual SCSI adapter. You cannot remove this adapter or add additional adapters.

For more information about Get-SCVirtualScsiAdapter, type: "Get-Help Get-SCVirtualScsiAdapter -online".

Parameters

All

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Retrieves a full list of all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All retrieves all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

HardwareProfile

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a hardware profile object.

VMTemplate

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM template object used to create virtual machines.

VM

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a virtual machine object.
Requires a VMM virtual machine object, virtual machine template object, or hardware profile object, which can be retrieved by using the Get-SCVirtualMachine, Get-SCVMTemplate, or Get-SCHardwareProfile cmdlets, respectively.

Examples

1: Get all virtual SCSI adapters on a virtual machine.
PS C:\> $VM = Get-SCVirtualMachine -Name "VM01"
PS C:\> Get-SCVirtualScsiAdapter -VM $VM
The first command gets the virtual machine object named VM01 and stores the object in the $VM variable.

The second command gets all virtual SCSI adapter objects on VM01 and displays information about the adapters to the user.
2: Get all virtual SCSI adapters in a virtual machine template.
PS C:\> $VMTemplate = Get-SCVMTemplate | where { $_.Name -eq "VMTemplate01" }
PS C:\> Get-SCVirtualScsiAdapter -VMTemplate $VMTemplate
The first command gets the virtual machine template object named VMTemplate01 from the VMM library and stores the object in the $VMTemplate variable.

The second command gets all virtual SCSI adapter objects on VMTemplate01 and displays information about the adapters to the user.
3: Get all virtual SCSI adapters from a hardware profile.
PS C:\> $HWProfile = Get-SCHardwareProfile | where { $_.Name -eq "NewHWProfile01" }
PS C:\> Get-SCVirtualScsiAdapter -HardwareProfile $HWProfile
The first command gets the hardware profile object named NewHWProfile01 from the VMM library and stores the object in the $HWProfile variable.

The second command gets all SCSI adapter objects on NewHWProfile01 and displays information about the adapters to the user.

See Also