Install wmic on linux distribution

December 21, 2015 by Linux Guru

Filed under Linux, Window

Last modified December 1, 2016

Install wmic on linux distribution

One excellent tool for Systems Management on Windows is the Windows Management Instrumentation (WMI), which allows you to remotely execute commands and query parameters on a Windows Host. Of course, all modern Windows systems have the WMI Client installed.

My ultimate goal is to remotely (from Linux) get the Window’s machines serial number and model name. This is very easily achievable with the following two commands in cmd.exe locally on the Windows machine:

wmic bios get serialnumber
wmic computersystem get model

[1] For RedHat , Fedoracore , Centos 
Need to install dependency before installing this wmi pkg. 
Repository
- http://www6.atomicorp.com/channels/atomic/
- http://pkgs.org/centos-6-rhel-6/atomic-x86_64/wmi-1.3.14-3.el6.art.x86_64.rpm.html
- http://artica.es/centos6/

[2] For Debian
Make sure you get the correct packages for your architecture and Linux distribution. 
Then install these two packages like so:
 root@test:~# dpkg -i libwmiclient1_1.3.14-3_amd64.deb
 root@test:~# dpkg -i wmi-client_1.3.14-3_amd64.deb

Leave a Comment