I have tried get-volume, wmi/cim etc, but every example I've tried lists all volumes. What I need is a list of only the local volumes, not any cluster volumes.
Solved - code below: $myDisks = Get-CimInstance -ClassName Win32_LogicalDisk | Where-Object –FilterScript {$.DriveType -Eq 3} | Select-Object DeviceID, VolumeName, Size, FreeSpace, @{Name="UsedSpace"; Expression={$.Size - $_.FreeSpace}} | Sort-Object -Property DeviceID $myServer = (Get-Content env:COMPUTERNAME).ToUpper() Import-Module FailoverClusters $myCluster = $(Get-Cluster).Name $myClusterDisks = Get-CimInstance -Namespace Root\MSCluster -ClassName MSCluster_Resource -ComputerName $myCluster | Where-Object –FilterScript {($.Type -eq 'Physical Disk') -and ($.OwnerNode -eq $myServer)} $myClusterVolumes = $myClusterDisks | %{Get-CimAssociatedInstance -InputObject $_ -ResultClassName MSCluster_DiskPartition} | Select-Object Path, VolumeLabel, TotalSize, FreeSpace, @{Name="UsedSpace"; Expression={$.TotalSize - $.FreeSpace}} | Sort-Object Path $myLocalVolumes = $myDisks | Where {$_.DeviceId -notin @($myClusterVolumes.Path)}
Get-Volume | where {$_.FileSystem -ne 'CSVFS'} | ft
or perhapsGet-Volume | where {$_.FileSystem -in @('NTFS','FAT32','ReFS')} | ft
– leeharvey1