Get computer and operating system information on Windows with WMIC
Updated 16 Sep 2014

View License

wmicGet returns computer and operating system informations on Windows platforms.
wmicGet is a wrapper function that call the Windows Management Instrumentation Command-line (WMIC).

wmicGet can also uses the "where" clause of WQL syntaxe to perform more advanced queries.


infos = wmicGet('cpu');

infos = wmicGet('win32_logicaldisk', {'DeviceID' 'FreeSpace' 'Size'}, ...
'Where',{'' 'DeviceID' 'C:' true ;
'or' 'DeviceID' 'D:' true})

See wmicGet.m header for more examples and links to the Microsoft documentation.

Cite As

Jerome Briot (2024). wmicGet (https://www.mathworks.com/matlabcentral/fileexchange/47858-wmicget), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Programming Utilities in Help Center and MATLAB Answers

Inspired: wmicGetHardwareInfos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes