CmdID / PowerShell / Cmdlets / Set
Set-VMHardDiskDrive
Configures a virtual hard disk. Windows Server PowerShell reference
From the Windows Server PowerShell reference 24 parameters Its page in the reference
Parameters
Show its 24 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 on which the virtual hard drive is to be configured.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ControllerLocationSpecifies the number of the location on the controller to which the virtual hard drive to be configured is attached.-ControllerNumberSpecifies the number of the controller to which the virtual hard drive to be configured is attached.-ControllerTypeSpecifies the type of the controller to which the virtual hard drive to be configured is attached.-CredentialSpecifies one or more user accounts that have permission to perform this action.-DiskNumber, -NumberSpecifies the disk number of the offline physical hard drive that should 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-PassthruSpecifies that a Microsoft.HyperV.PowerShell.HardDiskDrive object is to be passed through to the pipeline representing the virtual hard drive to be configured.-PathSpecifies the path to media the virtual hard disk is to use.-QoSPolicySpecifies the storage Quality of Service (QoS) policy to associate with the hard disk drive.-QoSPolicyIDSpecifies the ID for a storage QoS policy to associate with the hard disk drive.-ResourcePoolNameSpecifies the name of the virtual hard disk resource pool to which this drive belongs.-SupportPersistentReservations, -ShareVirtualDiskIndicates whether the hard disk supports SCSI persistent reservation semantics.-ToControllerLocationSpecifies the controller location to which this drive should be moved.-ToControllerNumberSpecifies the controller location to which this drive should be moved.-ToControllerTypeSpecifies the type of controller to which this drive should be moved.-VMHardDiskDriveSpecifies one or more hard disks to be configured.-VMNameSpecifies the name of the virtual machine on which the virtual hard drive is to be configured.-WhatIf, -wiShows what would happen if the cmdlet runs.