Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I extract one value from the first of a command chain in my output? For example:

Get-ActiveSyncDevice | Get-ActiveSyncDeviceStatistics   | ft    UserDeviceAgent, Identity -a

The column UserDeviceAgent is visable in Get-ActiveSyncDevice, however I can't get it to appear in the final output

enter image description here

share|improve this question

Try using Get-ActiveSyncDevice | Get-ActiveSyncDeviceStatistics | ft DeviceUserAgent, Identity

The attribute appears to be "DeviceUserAgent" and not "UserDeviceAgent".

share|improve this answer
Though this may be true, is there a way to back reference the attribute from the first command in the chain? – LamonteCristo Mar 25 '12 at 14:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.