Powershell Foreach Tutorial

Sdílet
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

Komentáře • 9

  • @cool24a
    @cool24a Před 2 lety +2

    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

    • @jordanpdq1287
      @jordanpdq1287 Před 2 lety +1

      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!

  • @perkynson
    @perkynson Před 11 měsíci

    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

  • @danielnicholson239
    @danielnicholson239 Před 2 lety

    Not to sound judgmental, nice video damn it I sounded judgmental.

  • @STHLMsoderort
    @STHLMsoderort Před 2 lety +1

    Hi, Nice video. How is the content of that csv file?

    • @pdq
      @pdq  Před 2 lety

      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.

  • @lynskyrd
    @lynskyrd Před 10 měsíci

    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.

  • @danielnicholson239
    @danielnicholson239 Před 2 lety

    1st

  • @bukwildman521
    @bukwildman521 Před 2 lety +1

    %