VMware Cloud Community
michael_adams
Contributor
Contributor
Jump to solution

PowerShell Remove Harddisk Function

I have a need to define new VM's without a harddisk and I was going to add them later with the New-Harddisk function. The problem is that when the New-VM is executed it creates a default virtual disk and I can't find a remove hard disk cmdlet. How can I remove a harddisk using PowerShell?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Have a look at the remove-HD function in


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Have a look at the remove-HD function in


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
michael_adams
Contributor
Contributor
Jump to solution

Thanks. the function was exactly what I needed.

0 Kudos