PowerShell Input & Output

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

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

  • @sanghvian
    @sanghvian 4 ปีที่แล้ว +15

    This series is proof that treasure does exist on this planet 👏🏻

  • @meo658
    @meo658 2 ปีที่แล้ว +3

    Learned a lot, truly great tutorial.

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

    Hi TechThoughts. Extremely grateful for your tutorials. How would i adjust the title length in '$posts | Select-Object Title,Score | Sort-Object Score -Descending'? Some of the reddit post lengths are way too lengthy. Thank you.

    • @Techthoughts2
      @Techthoughts2  2 ปีที่แล้ว +1

      You can use Format-List instead:
      $posts | Select-Object Title,Score | Sort-Object Score -Descending | Format-List
      If you have to use Format-Table, it is unfortunately pretty tricky to define custom column widths for a table:
      stackoverflow.com/questions/38554966/controlling-column-widths-with-format-table

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

    Honestly.. I watched Pluralsight course videos..and this playlist is 100x better than Pluralsight!

    • @Techthoughts2
      @Techthoughts2  3 ปีที่แล้ว

      That means a lot!

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

      Absolutely. TH-cam does have some great teachers who explain way better than some $1000 paid courses.
      The challenge is to find them out.
      It's even tougher now that TH-cam has removed the dislike counts.

  • @harigpriya7
    @harigpriya7 ปีที่แล้ว

    while i was trying with this line $objData = $rawJSON | ConvertFrom-Json ... it is throwing below error ''Conversion from JSON failed with error: Unexpected character encountered while parsing value:

  • @chris8534
    @chris8534 ปีที่แล้ว

    How I wish the working files were at the github link to follow along.

  • @s.baskaravishnu22
    @s.baskaravishnu22 2 ปีที่แล้ว +2

    Many thanks for giving code

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

    Nice tutorial, thanks :)

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

    where can I get the Sample.log file

  • @abidinz
    @abidinz 5 ปีที่แล้ว +4

    the font is too small

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

      Thanks for the feedback. It looks like I didn't increase it on this lesson. I'll make sure that subsequent videos have a larger font.

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

      @@Techthoughts2 Looks good on my 1440p monitor :)

  • @ramakantthorat2952
    @ramakantthorat2952 4 ปีที่แล้ว

    I can retrieve only one object, I just copy-paste code from your site sill it is retrieving only one object

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

      Please paste the code you are having issues with.

    • @ramakantthorat2952
      @ramakantthorat2952 4 ปีที่แล้ว

      @@Techthoughts2
      #retrieve dynamic content from a website
      $webResults = Invoke-WebRequest -Uri 'reddit.com/r/powershell.json'
      $rawJSON = $webResults.Content
      $objData = $rawJSON | ConvertFrom-Json
      $posts = $objData.data.children.data
      $posts | Select-Object Title,Score | Sort-Object Score -Descending
      I tried both Desktop and core edition but it returns only one object

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

      I have verified that this code does indeed work as intended. Can you please indicate the error you are receiving? Can you clarify what you mean by only one object? You should only be receiving one object, the json payload. But, it can be drilled into to discover many sub properties containing content.

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

    Font size is too small, can't see.....