get-wmiobject -query "Select TotalPhysicalMemory from Win32_LogicalMemoryConfiguration" -computer COMPUTERNAME >> output.csv
get-wmiobject -query "Select TotalPageFileSpace from Win32_LogicalMemoryConfiguration" -computer COMPUTERNAME >> output.csv
私はこのスクリプトを次のような出力で完成させようとしています:
Computer Physical Memory Virtual Memory
server1 4096mb 8000mb
server2 2048mb 4000mb