Hi everyone, Can you help me on this I need a powercli script that gets VM name, OS TYPE, Disk naa.id and checks if it is RDM or VMFS disk? Thanks in advance.
You mean something like this?
Get-VM | Get-HardDisk |
Select @{N='VM';E={$_.Parent.Name}},
@{N='Guest OS';E={$_.Parent.Guest.OSFullName}},
Name,
@{N='RDM';E={$_.DiskType -match "^Raw"}},
@{N='CanonicalName';E={$_.ScsiCanonicalName}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You mean something like this?
Get-VM | Get-HardDisk |
Select @{N='VM';E={$_.Parent.Name}},
@{N='Guest OS';E={$_.Parent.Guest.OSFullName}},
Name,
@{N='RDM';E={$_.DiskType -match "^Raw"}},
@{N='CanonicalName';E={$_.ScsiCanonicalName}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks master!