Atlantiraptor Docs

Windows.System.WMIQuery

Type: Client · Author: Matt Green - @mgreen27

Runs a configurable WMI query on Windows and outputs the result rows.

Windows Management Instrumentation (WMI) is the Microsoft implementation of Web-Based Enterprise Management (WBEM), which is an industry initiative to develop a standard technology for accessing management information in an enterprise environment. WMI uses the Common Information Model (CIM) industry standard to represent systems, applications, networks, devices, and other managed components. CIM is developed and maintained by the Distributed Management Task Force (DMTF).

Please see the second reference link for an example of built-in system classes.

Required permissions: EXECVE

Parameters

Name Type Default Description
WMIQuery string SELECT * FROM Win32_Process Add target WMI query: e.g SELECT * FROM
Namespace string root/cimv2 Add target Namespace: e.g root/cimv2

References

Source

Defined in artifacts/definitions/Windows/System/WMIQuery.yaml.

name: Windows.System.WMIQuery
author: Matt Green - @mgreen27
description: |
    Runs a configurable WMI query on Windows and outputs the result
    rows.
    
    Windows Management Instrumentation (WMI) is the Microsoft
    implementation of Web-Based Enterprise Management (WBEM), which is
    an industry initiative to develop a standard technology for
    accessing management information in an enterprise environment. WMI
    uses the Common Information Model (CIM) industry standard to
    represent systems, applications, networks, devices, and other
    managed components. CIM is developed and maintained by the
    Distributed Management Task Force (DMTF).

    Please see the second reference link for an example of built-in
    system classes.

reference:
    - https://docs.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page
    - https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/operating-system-classes

required_permissions:
  - EXECVE

parameters:
  - name: WMIQuery
    description: "Add target WMI query: e.g SELECT * FROM <CLASSNAME>"
    default: "SELECT * FROM Win32_Process"

  - name: Namespace
    description: "Add target Namespace: e.g root/cimv2"
    default: root/cimv2

sources:
  - precondition:
      SELECT OS From info() where OS = 'windows'

    query: |
       SELECT * FROM wmi(namespace=Namespace,query=WMIQuery)

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.