Windows/wmic: Difference between revisions

From Omnia
Jump to navigation Jump to search
Line 25: Line 25:


ref: [https://community.intersystems.com/post/decoding-intel-processor-models-reported-windows]
ref: [https://community.intersystems.com/post/decoding-intel-processor-models-reported-windows]
== Get Memory Capacity ==
For a 64GB system:
C:\>wmic computersystem get totalphysicalmemory
TotalPhysicalMemory
68587692032
C:\>wmic memorychip get devicelocator, capacity
Capacity    DeviceLocator
34359738368  PROC 1 DIMM 12
34359738368  PROC 2 DIMM 12


== Windows QFE ==
== Windows QFE ==

Revision as of 22:34, 15 December 2023

wmic

Windows Management

WARNING: WMIC is deprecated! (warning from "wmic /?")

Get Motherboard Serial Number

C:\> echo "" | wmic bios get serialnumber
SerialNumber
R9HWGD7

Get CPU Name

wmic cpu get name
E:\Profiles\myname>wmic cpu get name
Name
Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz

ref: [1]

Get Memory Capacity

For a 64GB system:

C:\>wmic computersystem get totalphysicalmemory
TotalPhysicalMemory
68587692032
C:\>wmic memorychip get devicelocator, capacity
Capacity     DeviceLocator
34359738368  PROC 1 DIMM 12
34359738368  PROC 2 DIMM 12

Windows QFE

See Windows_10/Windows_Update_History

wmic qfe list

List Disk and Network Drives

Loop volume verify: [2]

@echo off
rem listdrives.bat by Kenneth Burgener <kenneth@kennethburgener.org> © Nov 2012

echo Available Drives:
for %%a in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
  rem echo %%a::
  vol %%a: 1>NUL 2>NUL && echo %%a:
)

Windows Vista and Windows 7: [3]

wmic logicaldisk get name

List physical drives like \\.\PHYSICALDRIVE1 [4]

wmic diskdrive list
wmic diskdrive list brief

keywords