Home Business Analyst BA Agile Coach PowerShell Foreach Loop | EP 18 | PowerShell Zero to Hero...

PowerShell Foreach Loop | EP 18 | PowerShell Zero to Hero in Month

68
0



This Video discuss about PowerShell Foreach loop in detail.

— What is PowerShell Foreach loop 00:04
— Syntax of PowerShell Foreach loop in Detail 00:29
— Workflow of PowerShell Foreach Loop in Detail 01:17
— Demo Showing how to use PowerShell Foreach Loop in Commands & Script 02:20

—————————————————————————————————————————————-
Commands and Code, that has been Used in this Section is mentioned here, You can please use it to practice.

# Using foreach loop in a command
$fruits = “Apple”,”Orange”,”Kiwi”
foreach ($Item in $fruits){“This is $Item”}

# Using foreach loop in a Script
$fruits = “Apple”,”Orange”,”Kiwi”
foreach ($Item in $fruits)
{“This is $Item”}

# Using foreach loop against Command Output
foreach ($Service in Get-Service)
{
“This is $(($Service).displayname)”
}

************************************************************************
************************************************************************
Join Me on —
Facebook Group
https://www.facebook.com/groups/MyLearningsOnline
Facebook Page
https://www.facebook.com/MyLearningsOnline
YouTube Channel
https://www.youtube.com/c/MyLearningsOnline

**************************************************************************
#PowerShell #PowerShellScripting #PowerShellForBeginners #learnPowerShell​ #PowerShelltraining​ #PowerShellTutorial #MyLearningsOnline

PowerShell Scripting for Beginners
PowerShell Tutorial for Beginners
PowerShell Full Course
PowerShell Training for Beginners
PowerShell Foreach loop
How to use PowerShell Foreach Loop

source

LEAVE A REPLY

Please enter your comment!
Please enter your name here