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.

boxdog
  • 7,894
  • 2
  • 18
  • 27
Cor4Ever
  • 229
  • 2
  • 7
  • 14

2 Answers2

2

Can you try this?

(Get-RetinaVersion).Audits

This should work as expected.

Suhas Parameshwara
  • 1,344
  • 7
  • 15
1

Another way of doing it,

Get-RetinaVersion | Select-Object -ExpandProperty Audits
Bryceson K
  • 36
  • 2