Powershell Output Differences RRS feed

  • Question

  • When writing commands on powershell sometimes the output is propagated one way and sometimes the other way.
    Let's say I am using the command Get-ADUser -Filter * | ? {$ -eq "$name"}
    in that situation I can use the Where-Object as below, and sometimes there are commands that populated the results other way and for some reason the Where-Object is not working.
    After investigating a little bit I found that Select-String will work for me for the other command that ran instead of the Where-Object.

    So it got me wondering what could be the differences between these two outputs?

    Thank you

    And by the way, if someone has a good learning site that can teach me the basics of all powershell from more inside perspective like what the difference between array and hash table, that that i know already, not really basic stuff :)


    • Edited by VentAcruZL Tuesday, June 5, 2018 7:17 AM Grammer
    • Moved by Bill_Stewart Sunday, July 29, 2018 11:30 PM Unanswerable drive-by question
    Monday, June 4, 2018 9:21 PM

All replies