Skip to content

Windows

Windows Device Info Preview

Implementation

Windows support uses WMI (Windows Management Instrumentation) to query system information.

Technologies Used

  • wmi crate - Rust bindings for WMI
  • COM - Component Object Model
  • sysinfo crate - Storage information
  • CoreGraphics - Display refresh rate

WMI Tables

InformationWMI TableField
ManufacturerWin32_ComputerSystemManufacturer
ModelWin32_ComputerSystemModel
Device NameWin32_ComputerSystemName
UUIDWin32_ComputerSystemProductUUID
SerialWin32_BIOSSerialNumber
Refresh RateWin32_VideoControllerCurrentRefreshRate

Testing WMI Queries

You can test WMI queries in PowerShell:

powershell
# Device info
Get-WmiObject -Class Win32_ComputerSystem | Select Manufacturer, Model, Name

# UUID
Get-WmiObject -Class Win32_ComputerSystemProduct | Select UUID

# Serial number
Get-WmiObject -Class Win32_BIOS | Select SerialNumber

# Display refresh rate
Get-WmiObject -Class Win32_VideoController | Select CurrentRefreshRate

Troubleshooting

WMI Service Issues

If queries fail, check the WMI service:

powershell
# Check service status
Get-Service winmgmt

# Restart service
Restart-Service winmgmt

# Verify repository
winmgmt /verifyrepository

# Repair if needed
winmgmt /salvagerepository

Virtual Machines

On virtual machines, some information may be missing or show hypervisor info:

  • VMware: Shows "VMware, Inc." as manufacturer
  • Hyper-V: Shows "Microsoft Corporation"
  • VirtualBox: Shows "innotek GmbH"

Released under the MIT License.