Powershell Foreach Tutorial
Vložit
- čas přidán 21. 08. 2024
- Foreach is a loop that executes a series of commands once for each value of an array. This allows you to interact with every object in an array and control the flow of results you get from PowerShell. This video will show you how to use them while answering the age-old question, of all the action heroes named, John, which John is best?
Can't get enough PDQ? Subscribe and enable notifications!
- Twitter - General info: @admarsenal
- All things PDQ Deploy: @pdqdeploy
- All things PDQ Inventory: @pdqinventory
- Package Library updates: @packagelibrary
- Alerts and Technical updates@pdqalerts
Facebook: / pdqlive
Reddit: / pdq
LinkedIn: / pdq.com
Our blog: www.pdq.com/blog/
Instagram: @pdqlife
Nice! I use foreach a lot! But I would like to understand dumping information into an array! Then display the array! Thank you for the information and video
Are you looking for within the foreach capturing the objects that meet certain criteria and making those into a new array? I think that would be fantastic information to cover. I will work on getting a video on that shot this week, and depending on how long it takes our team to make my face less.....my face on camera will get that up as soon as possible.
If I missed the mark on what you are looking for let me know and I can work on any other information. I am always happy to create PowerShell videos!
Love your work, I wish i could see the csv you were using for this example, how is composed. I'm learning powershell to work with big excel sheets to localize registration numbers and complete fields without being too manual and your tutorial actually proved that is not that hard
Not to sound judgmental, nice video damn it I sounded judgmental.
Hi, Nice video. How is the content of that csv file?
That csv I just made for fun for the video, I did not get it from anywhere. If this question is more for formatting, it is just a csv that is comma-separated with 4 columns.
I wish Microsoft would stop characterizing 'foreach' as an alias to 'foreach-object'. it is not a true alias- period. They are 'similar' with respect to being a looping / iteration mechanism but it ends there. They are called differently and structured differently.
1st
%