Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

Retrieve details of installed Memory Chips using @WMI

$
0
0
Code:
c:\users\jlc\utils>ver

TCC  23.00.28 x64   Windows 7 [Version 6.1.7601]

Code:
@setlocal
@echo off
function StrFormatByteSize=`%@winapi[shlwapi.dll,StrFormatByteSize,%1,BUFFER,256]`
set MemoryDevices=%@wmi[root\cimv2,"SELECT MemoryDevices From Win32_PhysicalMemoryArray"]

do kount=1 to %MemoryDevices
  set Tag=%@wmi[root\cimv2,"SELECT Tag From Win32_PhysicalMemory",%kount]
  set Capacity=%@wmi[root\cimv2,"SELECT Capacity From Win32_PhysicalMemory",%kount]
  set...

Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles