Straight away, let me say I couldn’t be more of a noob, so I apologize for the noobicity of this question.
Just started learning Powershell using the 30 Lunches book. My question is on the topic of cmdlets accepting pipeline output.
I’ve been using this handy command for a while to see what drives were mapped on a remote computer (though never having used Powershell, I just knew to copy and paste it into PS to get my results - had zero idea what was happening):
Get-WmiObject -Class Win32_MappedLogicalDisk -ComputerName | Select-Object -Property Name, ProviderName
Knowing a little more now, I’m trying to follow the process through. Here’s my question: The help for Select-Object shows that its parameter “-Property” does NOT accept pipeline input. In that case, how is it acting on the objects coming through the pipe from Get-WmiObject?
Hope that makes sense!