Skip to content

Instantly share code, notes, and snippets.

@gislig
Created May 10, 2018 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gislig/47971e56964be0ce211d7ffbf14befc1 to your computer and use it in GitHub Desktop.
Save gislig/47971e56964be0ce211d7ffbf14befc1 to your computer and use it in GitHub Desktop.
Simple Powershell Example 1
$Cars = "Tyota","Hyundai","Ford"
#Foreach within the Array
$Cars | ForEach-Object { $_ }
#Foreach within the Array simpler
$Cars | ForEach { $_ }
#Foreach within the Array much simpler
$Cars | % { $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment