PowerShell Module 2: A Brief Introduction to the Language

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 20

  • @waynekaniewski2421
    @waynekaniewski2421 4 ปีที่แล้ว +1

    Want to automate simple tasks & discovered PowerShell. Your intro video is EXCELLENT...really a great overview, well-organized, and gave me a LOT of information in a short time. Thank you!

  • @bobbenavides
    @bobbenavides 2 ปีที่แล้ว

    Bryan is very easy to understand. I think this is best place to start learning about PowerShell.

  • @AllenAndersonTaylor
    @AllenAndersonTaylor 4 ปีที่แล้ว +2

    Bryan, thanks so much for these videos. You're my virtual mentor. - Al

  • @ArchGuptill
    @ArchGuptill 7 ปีที่แล้ว +1

    Thanks Bryan. Great introductory videos. More please.

  • @bhatsuchi
    @bhatsuchi 5 ปีที่แล้ว +2

    Great videos! I love the simplicity in explaining concepts! I've watched other videos on Databricks from you, Bryan and they are all wonderful in explaining concepts really well! Thank you!

  • @OM-mu1qt
    @OM-mu1qt 3 ปีที่แล้ว +1

    Thank you from Trinidad and Tobago!

  • @WorthitDudes
    @WorthitDudes 5 ปีที่แล้ว +1

    powershell newbie here: this is by far the most helpful video i have seen so far (i have used my entire week off watching PS vids lol) thank you!

    • @BryanCafferky
      @BryanCafferky  5 ปีที่แล้ว

      Great way to spend the week. :-) Glad you found this useful.

  • @JensOleMortensen
    @JensOleMortensen 4 ปีที่แล้ว +2

    Your videos are really awesome, and I learned a lot form it. Thank you very much.

  • @David-wh7rm
    @David-wh7rm 7 ปีที่แล้ว +1

    Great video Bryan, keep it up! I liked the foreach explanation, I never realised this.

    • @BryanCafferky
      @BryanCafferky  7 ปีที่แล้ว

      Thanks David. I just did another that covers all the looping structures in detail.

  • @tuck582
    @tuck582 6 ปีที่แล้ว +1

    Hi Bryan, thank you for sharing your knowledge! Could you elaborate on the efficiency gains part with ForEach vs ForEach-Object? I am still having a difficult time understanding when one is better than the other, and what the actual differences are behind the scenes.

    • @BryanCafferky
      @BryanCafferky  6 ปีที่แล้ว

      Hi Tucker, My main point is that the alias foreach which translates to foreach-object only gets invoked when you pipe into the command. When you write the code as a loop over a collection, it does not translate using the alias which is very odd. Example code is:
      Get-ChildItem | foreach { "Value is $_" }
      Get-ChildItem | foreach-object { "Value is $_" }
      $myarray = Dir
      foreach ($val in $myarray)
      { "Value is $val " }
      foreach-Object ($val in $myarray)
      { "Value is $val " }
      Notice the the last statement fails but the prior one does not. In the first statement, foreach is translated to foreach-object due to the alias but the second to last statement is not translated. Why? I don't know. Kind of looks like a bug. So word of caution.
      As for performance, piping data through a command should perform better and require less memory because you don't need to store and hold the data, i.e. you are streaming it. When you loop over a collection the collection is all in memory. If you wanted to process a large file for example, the piping approach should scale better.

  • @nonsensepoem
    @nonsensepoem 5 ปีที่แล้ว +1

    Beautifully efficient. Thanks! One note about line 28 in your script: Perhaps this is regional, but I've always understood the tilde to be this: ~ while this ` is a backtick. Am I mistaken?

    • @BryanCafferky
      @BryanCafferky  5 ปีที่แล้ว +1

      Good point! Yes. You are correct. Did not realize I missed that. Thanks!

  • @JuanRuiz-pf5eu
    @JuanRuiz-pf5eu 2 หลายเดือนก่อน

    Wonderful!! Thanks! Great Job!!