In my piped command I want the bytes to be displayed as megabytes. My command queries a list of computers and returns their physical memory.
How do I do the conversion and where do I add it?
$comp = Get-Content c:\users\jasonbe\computerlist2.txt
Get-WmiObject -Class Win32_ComputerSystem -computer $comp | select Name, Totalphysicalmemory |`Export-Csv c:\users\jasonbe\Physical_Mem.csv`
1 Answer