Dear Friends
how im can extract the value of persistence value of disks of virtual machine ?
im use this command bellow , im have a if to verify if the disks are independent or not
but im want only the values of the column persistence to use in my script
Get-HardDisk -vm machine01
CapacityGB Persistence Filename
---------- ----------- --------
10,000 Persistent [LUN2] RJ7469SR039/RJ7469SR039.vmdk
8,000 Persistent [UN2] RJ7469SR039/RJ7469SR039_1.vmdk
Thanks
Almir
From your example, you just need to use Select-Object
Get-HardDisk -vm machine01 | Select Parent, Persistence
The parent is the name of the VM
From your example, you just need to use Select-Object
Get-HardDisk -vm machine01 | Select Parent, Persistence
The parent is the name of the VM