replace [$svr]
with ServerName
Also, I'd change
foreach($Servers in $Servers) {
getwmiinfo $Servers
}
to
foreach($Server in $Servers) {
getwmiinfo $Server
}
Notice the variable name change in the foreach statement
Update
gwmi -query "select * from Win32_PhysicalMemory" | select __SERVER, DeviceLocator
John Weldon
2010-01-12 20:31:34