Quantcast
Viewing all articles
Browse latest Browse all 21975

-Filter parameter

Hello!

Having read this: http://www.computerperformance.co.uk/powershell/powershell_wmi_filter.htm

"

PowerShell -Filter Parameter

PowerShell's -filter is an alternative solution to the | Where-Object {$_.clause} when sieving data.  Using -filter instead of 'Where' is a classic case of when you find a good technique, look for an even better modus operandi.

"

...I assume that I can use -Filter instead of  Where-Object in any cmdlets. But, for example, runningGet-process -Filter ... produces the error stating there's no such parameter, whereasGet-WmiObject ... -Filter works as expected. Why?

Thank you in advance,

Michael


Viewing all articles
Browse latest Browse all 21975

Trending Articles