CmdID

CmdID / PowerShell / Cmdlets / Add

Add-VMHardDiskDrive

Adds a hard disk drive to a virtual machine. Windows Server PowerShell reference

From the Windows Server PowerShell reference 22 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

22 in the Windows Server PowerShell reference
Show its 22 parameters
-AllowUnverifiedPathsSpecifies that no error is to be thrown if the specified path is not verified as accessible by the cluster.
-CimSessionRuns the cmdlet in a remote session or on a remote computer.
-ComputerName, -PSComputerNameSpecifies one or more Hyper-V hosts that run this cmdlet.
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-ControllerLocationSpecifies the number of the location on the controller at which the hard disk drive is to be added.
-ControllerNumberSpecifies the number of the controller to which the hard disk drive is to be added.
-ControllerTypeSpecifies the type of the controller to which the hard disk drive is to be added.
-CredentialSpecifies one or more user accounts that have permission to perform this action.
-DiskNumber, -NumberSpecifies the disk number of the offline physical hard drive to be connected as a passthrough disk.
-MaximumIOPSSpecifies the maximum normalized I/O operations per second (IOPS) for the hard disk.
-MinimumIOPSSpecifies the minimum normalized I/O operations per second (IOPS) for the hard disk.
-OverrideCacheAttributes
-PassthruPasses the added Microsoft.HyperV.PowerShell.HardDiskDrive object through to the pipeline.
-PathSpecifies the full path of the hard disk drive file to be added.
-QoSPolicySpecifies the name of the storage Quality of Service (QoS) policy that this cmdlet associates with the hard disk drive.
-QoSPolicyIDSpecifies the unique ID for a storage QoS policy that this cmdlet associates with the hard disk drive.
-ResourcePoolNameSpecifies the friendly name of the ISO resource pool to which this virtual hard disk is to be associated.
-SupportPersistentReservations, -ShareVirtualDiskIndicates that the hard disk supports SCSI persistent reservation semantics.
-VMSpecifies the virtual machine to which the hard disk drive is to be added.
-VMDriveControllerSpecifies the controller to which the hard disk drive is to be added.
-VMNameSpecifies the name of the virtual machine to which the hard disk drive is to be added.
-WhatIf, -wiShows what would happen if the cmdlet runs.