Snippets/Pipeline/Where-Object.snippets.ps1xml
<?xml version='1.0' encoding='utf-8' ?>
<Snippets xmlns='http://schemas.microsoft.com/PowerShell/Snippets'> <Snippet Version='1.0.0'> <Header> <Title>Where-Object</Title> <Description>adds a Where-Object statement to a pipeline. Where-Object acts like a pipeline condition, and can filter out incoming pipeline objects.</Description> <Shortcut>wh</Shortcut> <Keywords>Pipeline,Console</Keywords> <Author>Tobias</Author> <DifficultyLevel>3</DifficultyLevel> <Example>False</Example> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> <Requirements> <MinimumPowerShellVersion>1</MinimumPowerShellVersion> <RequiredModules></RequiredModules> <AdminPrivileges>False</AdminPrivileges> <ProcessorArchitecture>x86,x64</ProcessorArchitecture> </Requirements> </Header> <Code> <Script Language='PowerShell' CaretOffset='20'> <![CDATA[| Where-Object { $_. } ]]> </Script> </Code> </Snippet> </Snippets> |