INTRODUCTION
The Windows Management Instrumentation Command-line (WMIC) is a powerful command-line tool in Windows that allows you to interact with WMI (Windows Management Instrumentation) to manage system settings and retrieve information about the operating system, hardware, and installed software.
Here are some common usages of the WMIC command:
1. Get System Information:
wmic os get caption, version, osarchitecture
This retrieves the operating system's name, version, and architecture.
2. List Installed Software:
wmic product get name, version
This shows a list of installed programs along with their versions.
3. Get CPU Information:
wmic cpu get name, numberofcores, maxclockspeed
4. Get Disk Drive Information:
wmic diskdrive get model, size
5. Check hard drive status:
wmic diskdrive get status
6. Get Network Adapter Information:
wmic nic get name, macaddress
7. Get Running Processes:
wmic process get name, processid
8. Shut Down the System:
wmic os shutdown
9. Check System Uptime:
wmic os get lastbootuptime
10. Retrive Memory Information
wmic memorychip get BankLabel, Capacity, DeviceLocator, MemoryType, TypeDetail, Speed, Manufacturer, SerialNumber
Explanation of Parameters:
- BankLabel: The bank label or slot where the memory module is installed.
- Capacity: The capacity of the memory module in bytes.
- DeviceLocator: The physical slot on the motherboard where the memory is installed.
- MemoryType: The type of memory, such as DDR, DDR2, DDR3, etc. (Note: The raw numeric value is returned. For example, 24 = DDR3).
- TypeDetail: Detailed information about the memory type.
- Speed: The speed of the memory in MHz.
- Manufacturer: The manufacturer of the memory module.
- SerialNumber: The serial number of the memory module.
If you'd like all available memory-related information, you can run:
wmic memorychip list full
Memory Type Code
- if unkown, try smbiosmemorytype
3 | Synchronous DRAM (SDRAM) |
27 | DDR5 (Double Data Rate 5) |
28 | LPDDR (Low Power Double Data Rate) |
29 | LPDDR5 (Low Power Double Data Rate 5) |
Form Factor Codes
-If WMIC returns
FormFactor Code 0
("Unknown") when trying to retrieve memory information, it indicates that Windows was unable to detect or report the form factor of the memory module
2 | SIP (Single In-line Package) |
3 | DIP (Dual In-line Package) |
4 | ZIP (Zig-zag In-line Package) |
5 | SOJ (Small Outline J-lead) |
7 | SIMM (Single In-line Memory Module) |
8 | DIMM (Dual In-line Memory Module) |
9 | TSOP (Thin Small Outline Package) |
12 | SODIMM (Small Outline DIMM) |
14 | SMD (Surface-Mount Device) |
15 | SSMP (Small Scale Package) |
16 | QFP (Quad Flat Package) |
17 | TQFP (Thin Quad Flat Package) |
18 | SOIC (Small Outline Integrated Circuit) |
19 | LCC (Leadless Chip Carrier) |
20 | PLCC (Plastic Leaded Chip Carrier) |
22 | FPBGA (Fine-Pitch Ball Grid Array) |
Conclusion
WMIC is a powerful tool for managing various system aspects via scripts or command line, but it was deprecated in Windows 10 version 21H1 and is recommended to be replaced by PowerShell equivalents for newer systems.
Comments
Post a Comment