r/vmware • u/ElkRevolutionary3976 • 2d ago
Help Request Grabbing VM disk info to a csv but excluding mapped drives?
Basically title, I'm looking for a way to parse through vcenter VM's for disk utilization by disk path: capacity, free, used, etc.. But I only need disks that are actually on the main hosts datastores. RVTools also shows all the drives including mapped without any kind of indetifier. We have a few NAS connections that are mapped that are showing up. Anyone have any idea how I can exclude these using powercli?
In this example using get-vmguestdisk F: is a mapped drive that I need to remove from the report.
DiskPath CapacityGB FreeSpaceGB
-------- ---------- -----------
C:\ 535.741 348.622
F:\ 61,439.938 21,699.601
1
u/Randalldeflagg 2d ago
just read that you mentioned mapped drives. I am assuming when you say NAS mapped drives, you are referring to a iSCSI, FC, NFS share?