Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

-filter and where

$
0
0

Hi All,

I am very new to powershell and it is just days I started learning it. I have some idea on batch scripting. I am confused when should I use -filter command and where(or where-object) commands. What is the main difference  and when should we use -filter and where commands. For ex, in this command,

Get-Process | Where-Object {$_.handles -gt 200}
why can't I use get-process -filter handles -gt 200

 

Chaitanya.


Viewing all articles
Browse latest Browse all 6937

Trending Articles