get-wmiobject -query "Select TotalPhysicalMemory from Win32_LogicalMemoryConfiguration" -computer COMPUTERNAME >>output.csv
get-wmiobject -query "Select TotalPageFileSpace from Win32_LogicalMemoryConfiguration" -computer COMPUTERNAME >>output.csv
I am trying to complete this script with an output as such:
Computer Physical Memory Virtual Memory
server1 4096mb 8000mb
server2 2048mb 4000mb