Search code examples
powershellinstallationvhd

Powershell: How can i install a cmdlet?


I need to install New-VHD cmdlet to use this command to create virtual disk and initilize them.

I have activated Hyper-V feature on Windows to be able to use this cmdlet, but i want to install only New-VHD cmdlet without Hyper-V. How can i do that?

Thank you


Solution

  • According to Technet just run (as admin): Enable-WindowsOptionalFeature -Feature Microsoft-Hyper-V-Management-PowerShell