none
Arrange multiple outputs in single table RRS feed

  • Question

  • Hi Team,

    Please help me on this, i'm trying to arrange multiple outputs to single table.

    Example : 

    $output1 = command1

    $output2 = command2

    $output3 = command3

    $output4 = command4

    tried following 

    write-output = "$($output1),$($output2),$($output3),$($output4),"

    echo "$output1+$output2+$output3+$output4"

    Outputs:

    @{output1=output},{output2=output}, @{output3=output},{output4=output}

    please help me to get output in table form in single row

    Thanks in Advance!

    NTRao

    • Moved by Bill_Stewart Friday, January 26, 2018 3:33 PM Unanswerable drive-by question
    Friday, December 15, 2017 8:49 AM

All replies

  • Your question is too vague.


    \_(ツ)_/


    • Edited by jrv Friday, December 15, 2017 9:01 AM
    Friday, December 15, 2017 9:00 AM
  • Hi Jrv,

    i'm gathering few informations from servers, informations like 

    $PrivateIp = Test-Connection -ComputerName (hostname) -Count 1  | Select IPV4Address
    $pvdrivers = get-wmiobject -class "Win32_SCSIController" | select Name
    $chimney = Get-NetOffloadGlobalSetting | select chimney

    i'm trying to merge all these into single table, i looking for output as below

    

    • Edited by NTRao Friday, December 15, 2017 11:06 AM
    Friday, December 15, 2017 9:25 AM
  • You need to create a custom object. 

    Here is a good place to start to learn PowerShell: https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276

    Search for blogs and examples of how to build custom objects.  You will have to learn PowerShell irst in order to understand the information on how to do this.


    \_(ツ)_/

    Friday, December 15, 2017 9:28 AM
  • Thank you Jrv, i'll try and post here soon..

    NTRao

    Friday, December 15, 2017 9:32 AM