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