Mastering PowerShell Dynamic Arrays

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

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

  • @justin.emmons
    @justin.emmons 6 หลายเดือนก่อน +1

    Great stuff Jeff. I've never messed around with [void] and or Out-Null. I'm still a PS noon so much of the stuff I do is just Ah-Hoc. Is the main reason for Out-Null for performance?

    • @jeffbrowntech
      @jeffbrowntech  6 หลายเดือนก่อน +1

      This is the StackOverflow thread I referenced in the video:
      stackoverflow.com/questions/5260125/whats-the-better-cleaner-way-to-ignore-output-in-powershell
      The way I am using Out-Null seems to be slower but someone points out it may be due to the pipeline. Overall, we're talking milliseconds, but if you're script is long running and doing the operation millions of times, it could make a difference.

    • @justin.emmons
      @justin.emmons 6 หลายเดือนก่อน +1

      @@jeffbrowntech Thanks Jeff. Keep up the great work you're doing.