Q: What Windows PowerShell cmdlet adds a VHD to a virtual machine in Windows Server 2012?

Add a virtual hard disk to a Windows Server 2012 virtual machine by using this PowerShell cmdlet.

John Savill

August 30, 2012

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A: The correct PowerShell cmdlet to use to add a virtual hard disk (VHD) to an existing virtual machine (VM) in Windows Server 2012 is the Add-VMHardDiskDrive cmdlet.

Here's an example showing its use on IDE:

Add-VMHardDiskDrive -VMName -ControllerType IDE -ControllerNumber 0 –Path "" -ComputerName 

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like