I know how to get total physical memory from win32_computersystem class. but that comes in bytes or kb. I want this information in MB or GB. in wmi (wql) query. wmic also work. thanks in advance.
相关问题
- How to Debug/Register a Permanent WMI Event Which
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- CosmosDB emulator can't start since port is al
- How to print to stdout from Python script with .py
- Determine if an executable (or library) is 32 -or
You must convert the value of the property manually. Also is better use Win32_PhysicalMemory WMI class.
Try this sample
you can convert
TotalPhysicalMemory
of Win32_ComputerSystem. Try this :Wanted to make mention that I used the Win32_PhysicalMemory Capacity property until I met inconsistent results on Windows Server 2012. Now I use both properties (Win32_ComputerSystem:TotalPhysicalMemory and Win32_PhysicalMemory:Capacity) and choose the larger of the two.