Windows/wmic: Difference between revisions

From Omnia
Jump to navigation Jump to search
No edit summary
 
Line 12: Line 12:
R9HWGD7
R9HWGD7
</pre>
</pre>
== Get CPU Name ==
wmic cpu get name
<pre>
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
</pre>
ref: [https://community.intersystems.com/post/decoding-intel-processor-models-reported-windows]


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

Revision as of 16:43, 16 November 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]

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