powershellscripts.com

Tutorials  PowerShell Cmdlet Help for New-ScsiController



NAME
New-ScsiController

SYNOPSIS
Creates a new SCSI controller.

SYNTAX
New-ScsiController [-HardDisk] [[-Type] ] [[-BusSharingMode] ]
[-WhatIf] [-Confirm] []


DESCRIPTION
Creates a new SCSI controller.


PARAMETERS
-HardDisk
Specify the hard disks you want to attach to the new SCSI controller.

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

-Type
Specify the type of the SCSI controller. The valid values are ParaVirtual, VirtualBusLogic, VirtualLsiLogic, an
d VirtualLsiLogicSAS.

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

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

Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

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

-Confirm
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
Accept pipeline input? false
Accept wildcard characters? false


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>$vm = Get-VM VM | New-HardDisk -CapacityKB 10485760 | New-ScsiController


Creates a new 10GB hard disk and a new SCSI controller with default values for the BusSharingMode and Type properti
es.





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

C:\PS>$disk = Get-HardDisk -VM VM | Select -First 2

New-ScsiController -HardDisk $disk -BusSharingMode Physical -Type VirtualLsiLogicSAS


Creates for the first two hard disks of VM a new SCSI controller of VirtualLsiLogicSAS type and with Physical bus s
haring mode.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/New-ScsiController.html
Get-ScsiController
Set-ScsiController