View Single Post
04-01-2008   #2 (permalink)
Jon


 

Re: Problem with get-command

"Darlove" <Darlove@xxxxxx> wrote in message
news:9858A993-9E4E-467C-9FA7-8AC6ACF31642@xxxxxx
Quote:

> Hi there. When I issue this:
>
> get-command -commandtype filter
>
> then what I get is filters and functions altogether.
> What's wrong? This happens with the Pscx extensions
> enabled as well as without it.
>
> Thanks for your time.

Yep, that is confusing. It says in the documentation for get-command that in
that context

' "Filter" and "Function" represent all Windows PowerShell functions. '

but this is what I use anyhow .....

dir function: | where {$_.CommandType -eq 'Filter'}

--
Jon



My System SpecsSystem Spec