0

Is there a way to only extra the info you need from a script output?

I have the following:

Get-RetinaVersion | Select-Object Audits 

Audits
------
3536  

I'm trying to isolate the "3536", I don't need the word Audits as part of the output. Any help you can provide will be greatly appreciated. Thank you.

2
  • 1
    Try this: (Get-RetinaVersion).Audits Commented Jul 22, 2019 at 15:16
  • May be be a duplicate of stackoverflow.com/questions/14406315/… Commented Jul 23, 2019 at 0:47

2 Answers 2

2

Can you try this?

(Get-RetinaVersion).Audits

This should work as expected.

Sign up to request clarification or add additional context in comments.

Comments

2

Another way of doing it,

Get-RetinaVersion | Select-Object -ExpandProperty Audits

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.