The wmic command on Linux : the main tool I’m using to monitor my Active Directory forest. This tool and the right bash shell script will give you the key to live monitor your Active Directory environment with low costs.

In this article, you will find the procedure to build and install the wmic tool. You can find the source of this article here

Description

Windows Management Instrumentation Command-line (WMIC) uses Windows Management Instrumentation (WMI) to enable system management from the command line.

This post explains how to install a wmic client on a Linux machine. The above installation procedure has been tested on a Ubuntu 12.04 LTS 32 bits host.

The client for Linux is not as powerful as the one for Windows because it is limited to “select” requests (i.e. not possible to request something like “process list brief”) but will be helpful if you don’t want to start your Windows virtual machine.

Installation

Pre-requisites

Compilation

Usage

Examples

Note: For a complete list of classes you can request, please refer to http://msdn.microsoft.com/en-us/library/aa394554(v=vs.85).aspx

Get system information

Get list of running processes

One thought on “Wmic command on Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: