VMware Cloud Community
fborges555
Enthusiast
Enthusiast

change independent to depend disk

Hi gurus 

 

can I change the independent disk to the dependent disk using powercli ?

 

Thanks a bunch

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

I assume that means the persistence of the HD?
If the VM is powered off, you could do

Get-VM |
Where{$_.PowerState -eq 'PoweredOff'} |
Get-HardDisk |
Where {$_.Persistence -eq 'NonPersistent'}|
Set-HardDisk -Persistence Persistent -Confirm:$false


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

Reply
0 Kudos