Always filter as far left in your pipeline as possible
guyrleech opened this issue · comments
Your Get-CimInstance call will return all win32_volume objects and then filter them whereas the more efficient way to do this kind of query is to use the -Filter parameter to Get-CimInstance
Get-CimInstance -classname win32_volume -Filter "filesystem = 'cimfs'" | Select-Object -Property name, filesystem, DeviceID
Thanks, Guy. This is appreciated.
Get-CimInstance