osquery / osquery/osquery

Feature Request: Monitor Info from WMI on Windows hosts

Open
#7,682 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Windows wishlist
Dominant language
C++
Stars
23.6k
Forks
2.6k
Avg merge
6d 7h
Merged PRs (30d)
14

Description

Feature request

What new feature do you want?

Create a new table for Windows hosts that displays the video monitor information for monitors connected to the queried host per the WMI Class WmiMonitorID. This includes each monitor's manufacturer, serial number, model, and the week/year of manufacture.

How is this new feature useful?

Our specific use case is to be able to remotely query this information from all hosts in an enterprise fleet. The collected results can then be used to update records in a CMDB to relate Monitor assets to Workstation assets.

How can this be implemented?

Should just be a case of querying the class in the root/wmi namespace and casting the arrays of uint16 values as strings.

An example WMI command from the Microsoft documentation is:
gwmi WmiMonitorID -Namespace root\wmi | ForEach-Object {($_.UserFriendlyName -ne 0 | foreach {[char]$_}) -join ""; ($_.SerialNumberID -ne 0 | foreach {[char]$_}) -join ""}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files, tests, or entry points are named. Start by reviewing the WmiMonitorID documentation and the root\wmi namespace query described in the issue. Done means a Windows-host table reports each connected monitor's manufacturer, serial number, model, and manufacture week/year.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.