Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How do I format output from two seperate commands onto one line?

$
0
0
get-wmiobject -Namespace "root\cimv2" -class Win32_OperatingSystem -CN localhost -prop version | Select version | FT version
get-wmiobject -Namespace "root\cimv2" -class Win32_ComputerSystem  -CN localhost -prop TotalPhysicalMemory,NumberofProcessors,Name | Select TotalPhysicalMemory,NumberofProcessors,Name | FT TotalPhysicalMemory,NumberofProcessors,Name 

Hello,

This should be pretty simple.  I just want to take each line of the two commands and include all 4 pieces of data as one line of table output with the variable names.  How can I do this?  Thanks in advance.


Thanks for your help! SdeDot


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>