Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Modules
QuickClick
Scripts
Snippets
Videos
Library
»
Snippet Library
»
Pipeline
»
Foreach-Object
Foreach-Object
Share
|
Browse Library
Module Library
QuickClick Library
Script Library
Snippet Library
ADSI
Comparison
Conditions and Loops
.Net
Exception Handlers
Files and Folders
Functions
Headers
Includes
Network
Pipeline
PowerShell Internals
Registry
Samples
Script Functions Templates
Security
SQL Server
Templates
User Management
WMI
Video Library
Members Only
Tags
ForEach-Object
Snippet
Where-Object
View more
Previous
|
Next
|
View all files
|
View Slideshow
Download
posted by
Richard Giles
02-17-2009
Downloads: 328
File size: 787 B
Views: 1,894
Embed
Foreach-Object
<?
xml
version
=
"1.0"
?>
<CodeSnippets xmlns
=
"http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
>
<CodeSnippet Format
=
"1.0.0"
>
<Header>
<Title>
foreach-object
<
/
Title>
<Shortcut>fe<
/
Shortcut>
<Description>inserts a
foreach-object
pipeline segment<
/
Description>
<Author>Dr. Tobias Weltner http:
//
www.powershell.com
<
/
Author>
<SnippetTypes>
<SnippetType>Expansion<
/
SnippetType>
<
/
SnippetTypes>
<
/
Header>
<Snippet>
<Declarations>
<Literal>
<ID>param1<
/
ID>
<ToolTip>Access properties of pipeline object<
/
ToolTip>
<Default>Something<
/
Default>
<
/
Literal>
<
/
Declarations>
<Code Language
=
"PowerShell"
Kind
=
"-1"
><
!
[CDATA[|
Foreach-Object
{
$_
.
$param1
$ } ]]><
/
Code>
<
/
Snippet>
<
/
CodeSnippet>
<
/
CodeSnippets>
Filed under:
Snippet
,
ForEach-Object
Inserts a foreach-object pipeline segment
Copyright 2011 PowerShell.com. All rights reserved.