I\'m trying to get the physical memory size using PowerShell, but without using get-wmiobject.
I have been using the following PS cmdlet to get the physical memory s
This gives you the total amount from another WMI class:
$cs = get-wmiobject -class "Win32_ComputerSystem" $Mem = [math]::Ceiling($cs.TotalPhysicalMemory / 1024 / 1024 / 1024)
Hope this helps.