Newbie question about wildcard / expected output

Welcome Forums General PowerShell Q&A Newbie question about wildcard / expected output

Viewing 2 reply threads
  • Author
    Posts
    • #211626
      Participant
      Topics: 1
      Replies: 2
      Points: 4
      Rank: Member

      Hi,

      I’m recently beginning to focus on Powershell and saying goodbye to old tools and methods and still in a very early beginning stadium so newbie warning/stupid questions galore…

      Can anyone tell me why I can’t get the output without the wildcard where seemingly there is no next character?

      https://gist.github.com/ST-oma/6ecc4326f7199a01bd5dae29a5bf950a

       

       

      • This topic was modified 2 weeks ago by ST_oma62.
      • This topic was modified 2 weeks ago by ST_oma62.
      • This topic was modified 2 weeks ago by ST_oma62.
    • #211674
      Moderator
      Topics: 3
      Replies: 212
      Points: 1,134
      Helping Hand
      Rank: Community Hero

      Yes, there are few functional differences between the PSProviders, you can’t expect the same type of output from two different PSProviders with the same CmdLet.

      Here in your case you should use either Get-Item or Get-ItemProperty to get results as expected.

      Thank you.

    • #211698
      Participant
      Topics: 1
      Replies: 2
      Points: 4
      Rank: Member

      Thank for your reply.

      With that answer I see that it makes sense in that I don’t get output with get-childitem in that there are no underlying items anymore so in that thought line you can expect no result of childitems but a result with Get-Item.

      It’s a bit quircky cause you do get a result with the wildcard.

      ANyway, thanks for helping me getting a better understanding, very much appriciated.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.