title: Pipeline Input/Output
body: <p>I want to list the files of C: drive. First of all, I want to get the device ID from logical disk wmi object, and list it.</p>
  
  <p><strong>Below command returns:</strong></p>
  
  <pre><code>Get-WmiObject -class Win32_logicaldisk
  
  
  DeviceID     : C:  
  DriveType    : 3  
  ProviderName :  
  FreeSpace    : 940371968  
  Size         : 125809192960  
  VolumeName   :  
  </code></pre>
  
  <p><strong>But this command:</strong></p>
  
  <pre><code>Get-WmiObject -class Win32_logicaldisk | select deviceid | Get-ChildItem -path {$_}
  </code></pre>
  
  <p>gives below error:</p>
  
  <blockquote>
    <p>Get-ChildItem : Cannot find drive. A drive with the name
    '@{deviceid=C' does not exist.   At line:1 char:60<br>
    + Get-WmiObject -class Win32_logicaldisk | select deviceid | Get-ChildItem -path { ...<br>
    +                                                            ~~~~~~~~~~~~~~~~~~~~~<br>
        + CategoryInfo          : ObjectNotFound: (@{deviceid=C:String) [Get-ChildItem], DriveNotFoundException<br>
        + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand</p>
  </blockquote>
  
  <p>Get-ChildItem -path accepts pipeline input, how we can solve this ?</p>