Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
CMBuild
1.0.8
Private/getCmxTotalMemory.ps1
function
getCmxTotalMemory
{
[math]
::
Round
(
(
Get-WmiObject
-Class
'Win32_PhysicalMemory'
|
Select-Object
-ExpandProperty
Capacity
|
Measure-Object
-Sum
)
.
Sum
/
1gb
,
0
)
}