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 * | ? {$_.name -eq "$name"}
in that situation I can use the Where-Object as below, and sometimes there are commands the populating 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 :)
Where-Objectbut whereSelect-Stringseems to due the trick?