Scenario: You add a bunch of memory to multiple servers and you want to check the amount on each server to verify it.
Powershell:
Check one Server in GB: [math]::Round((Get-WmiObject -Class Win32_ComputerSystem -computer ServerName).TotalPhysicalMemory/1GB)
Check one server in MB: [math]::Round((Get-WmiObject -Class Win32_ComputerSystem -computer ServerName).TotalPhysicalMemory/1MB)
Check Multiple Exchange Servers:
$server = Get-exchangeservers
$server | %{ Write-Host $_; [math]::Round((Get-WmiObject -Class Win32_ComputerSystem -computer $_).TotalPhysicalMemory/1GB)}
This is exactly what I’ve been looking for. I’ve been trying to find out how to check server memory. Thanks!!
LikeLike