From the course: PowerShell: Automating IT Administration
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Manipulating data with logic tests and loops - PowerShell Tutorial
From the course: PowerShell: Automating IT Administration
Manipulating data with logic tests and loops
- [Instructor] Now in our previous examples, we looked at conditional statements and comparisons. We then looped through content just for viewing purposes. But of course, as we are going and working with PowerShell, there'll be times where we need to manipulate the data. So let's have a look at what this might be. And I'm not talking about changing the data but just looking at the data in a different way. So remember that we ran this statement last time which is get child item path assets. If I choose to run this one it will list me my files in that directory. Now what about if I didn't want to see them all? I only wanted to see specific types I could then use the pipe command which we touched on this last time but the pipe command joins one piece to another. So basically the output of the get child item command is then automatically passed over to the wear object. So my where object, I'm saying extension is equal to CSV. So…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Why automate IT administration tasks?3m 3s
-
(Locked)
What are PowerShell modules, and why are they useful?4m 2s
-
(Locked)
Using conditional statements and comparisons12m 49s
-
(Locked)
Looping constructs for data manipulation13m 40s
-
(Locked)
Manipulating data with logic tests and loops7m 58s
-
(Locked)
Working with arrays and hash tables11m 13s
-
(Locked)
Understanding PowerShell error handling22m 40s
-
-
-
-