Input Filter Parameters
A cmdlet can define Filter
, Include
, and Exclude
parameters that filter the set of input objects that the cmdlet affects.
Typically, the set of input objects is specified by an InputObject
, Path
, or Name
parameter. For example, a cmdlet can have a Path
parameter that accepts multiple paths by using wildcard characters, and each path points to an input object. Used together, the Filter
, Include
, and Exclude
parameters further qualify the paths the cmdlet works on each time it is invoked.
Include and Exclude Parameters
The Include
and Exclude
parameters identify the objects that are included or excluded from the set of input objects passed to the cmdlet. Use these parameters when the filter can be expressed in the standard wildcard language. (For more information about wildcard characters, see Supporting Wildcards in Cmdlet Parameters.) The Include
parameter includes all the objects whose names match the inclusion filter. The Exclude
parameter excludes all the objects whose names match the filter.
Filter Parameter
The Filter
parameter specifies a filter that is not expressed in the standard wildcard language. For example, Active Directory Service Interfaces (ADSI) or SQL filters might be passed to the cmdlet through its Filter
parameter. In the cmdlets provided by Windows PowerShell, these filters are specified by the Windows PowerShell providers that use the cmdlet to access a data store. Each provider typically defines its own filter.
Filtering If No Set of Input Objects Is Specified
If no set of input objects is specified, this typically means to filter against all objects. For more information, seeGet-Process.
See Also
PowerShell
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기