# WMI4Java
**Repository Path**: MasterCoding/WMI4Java
## Basic Information
- **Project Name**: WMI4Java
- **Description**: Java API to perform WMI queries
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-11-22
- **Last Updated**: 2021-11-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README



# WMI4Java
Java API to perform WMI queries
## Installation ##
To install WMI4Java you can add the dependecy to your software project management tool: http://mvnrepository.com/artifact/com.profesorfalken/WMI4Java/1.6.3
For example, for Maven you have just to add to your pom.xml:
com.profesorfalken
WMI4Java
1.6.3
Instead, you can direct download the JAR file and add it to your classpath.
https://repo1.maven.org/maven2/com/profesorfalken/WMI4Java/1.6.3/WMI4Java-1.6.3.jar
## Basic Usage ##
#### List all WMI classes names from root/CIMv2 (default namespace) ####
```java
List wmiClassesList = WMI4Java.get().listClasses();
```
#### List all WMI classes names from root/WMI ####
```java
List wmiClassesList = WMI4Java.get().namespace("root/WMI").listClasses();
```
#### Get all the properties of a WMI Object ####
```java
//Example win32_BIOS
Map wmiObjectProperties = WMI4Java.get().getWMIObject("Win32_BIOS");
```
#### Get a list of WMI Objects ####
When you need to retrieve a list of WMI objects (processors, printers, etc), the flat getWMIObject method is not adequate.
In this case you should use the method getWMIObjectList instead.
```java
//Example Win32_PRINTER
List