Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

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

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

Your Answer

 
discard

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.