Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 225804

Re: Script to Remove HDDs other than HDD1 from VM and re-add it back.

$
0
0

You can filter for hard disks other than hard disk 1 using the Where-Object cmdlet. E.g.

 

$HDD = Get-HardDisk -VM $vmname | Where-Object {$_.Name -ne 'Hard disk 1'} | Remove-Harddisk


Viewing all articles
Browse latest Browse all 225804

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>