RMITBLOG / MSIX_APP_ATTACH

MSIX App Attach repo

Home Page:https://ryanmangansitblog.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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