NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #4406 most downloaded on crates.io
WMI crate for rust.
Latest stable
0.18.4
Last release 8 months ago
27 Mar 2026
Release timing varies
gaps range from 9 days to 5 months
Most releases are documented
notes for 46 of 54 stable releases
1 version withdrawn
withdrawn after publishing
8 years old
55 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Use CoIncrementMTAUsage behind a target_vendor cfg to support win7 build by @Guiguiprim in https://github.com/ohadravid/wmi-rs/pull/145
CoIncrementMTAUsage behind a target_vendor cfg to support win7 build by @Guiguiprim in https://github.com/ohadravid/wmi-rs/pull/145Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.18.3...v0.18.4
chore(deps): update criterion requirement from 0.7 to 0.8 by @dependabot[bot] in https://github.com/ohadravid/wmi-rs/pull/139
set_proxy_blanket for accessing namespaces that require elevated authentication levels by @delphifeel in https://github.com/ohadravid/wmi-rs/pull/143Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.18.2...v0.18.3
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add compatibility with multiple windows crate versions by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/144
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.18.1...v0.18.2
Added WMIConnection::{put_instance,delete_instance} by @pronebird in https://github.com/ohadravid/wmi-rs/pull/141
WMIConnection::{put_instance,delete_instance} by @pronebird in https://github.com/ohadravid/wmi-rs/pull/141Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.18.0...v0.18.1
Remove COMLibrary and let WMIConnection initialize COM if needed by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/137 You can now call WMICon
COMLibrary and let WMIConnection initialize COM if needed by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/137
You can now call WMIConnection::new() and let the crate handle the initialization internally.
Note: COM will NOT be uninitialized when the connection is dropped (similar to <=0.17 versions, which didn't uninitialize COM on drop since #53).
If this is not what you want, then you must initialize COM yourself before creating the connection. See the docs for more.Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.17.3...v0.18.0
chore(deps): update criterion requirement from 0.5 to 0.6 by @dependabot[bot] in https://github.com/ohadravid/wmi-rs/pull/128
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.17.2...v0.17.3
feat(remote_connection): added with_credentials() by @hatch15 in https://github.com/ohadravid/wmi-rs/pull/127
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.17.1...v0.17.2
Support arrays of IUnknown pointers by @samin-cf in https://github.com/ohadravid/wmi-rs/pull/125 and @ohadravid in https://github.com/ohadravid/wmi-rs
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.17.0...v0.17.1
Added support for Option by @vpopescu in https://github.com/ohadravid/wmi-rs/pull/122
SafeArrayAccessor::new now accepts a NonNull<SAFEARRAY> instead of a reference, in https://github.com/ohadravid/wmi-rs/pull/124Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.16.0...v0.17.0
This version adds support for more serialization inputs (nested structures, array), and changes the public API to be more cohesive.
This version adds support for more serialization inputs (nested structures, array), and changes the public API to be more cohesive.
Nested structrure can be serialized when provided as method parameters (#120):
let in_params = CreateInput {
CommandLine: "explorer.exe".to_string(),
ProcessStartupInformation: Win32_ProcessStartup {
PriorityClass: 128, // High priority.
},
};
let out: CreateOutput = wmi_con
.exec_class_method::<Win32_Process, _>("Create", in_params)?;
Arrays can be serialized when provided as method parameters (#121):
#[derive(Deserialize, Serialize)]
struct SetBinaryValue {
sSubKeyName: String,
sValueName: String,
uValue: Vec<u8>,
}
let test_value = vec![0, 1, 2, 3];
let set_binary_value_params = SetBinaryValue {
// ..
uValue: test_value,
};
let value: SetBinaryValueOut = wmi_con
.exec_class_method::<StdRegProv, _>("SetBinaryValue", &set_binary_value_params)?;
More lower-level API functions are exposed for IWbemClassWrapper:
let in_params = wmi_con
.get_object("Win32_Process")?
.get_method("Create")?
.unwrap() // Can be `None`.
.spawn_instance()?;
in_params
.put_property("CommandLine", "explorer.exe".to_string())?;
let out = wmi_con
.exec_method("Win32_Process", "Create", Some(&in_params))?;
// Before:
let output: CreateOutput = wmi_con.exec_class_method::<Win32_Process, _, _>("Create", input)?;
let output: PrinterOutput = wmi_con.exec_instance_method::<Win32_Printer, _, _>("Pause", &printer.__Path, ())?;
// Now, only the Class and Out generics are named:
let output: CreateOutput = wmi_con.exec_class_method::<Win32_Process, _>("Create", input)?;
let output: PrinterOutput = wmi_con.exec_instance_method::<Win32_Printer, _>(&printer.__Path, "Pause", ())?;
_native) methods to match the original names (exec_method_native_wrapper -> exec_method, exec_query_native_wrapper -> exec_query, etc.)IWbemClassWrapper and WMIConnection, rename lower-level functions by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/120Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.15.2...v0.16.0
Added put_property method for IWbemClassWrapper by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/119
put_property method for IWbemClassWrapper by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/119Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.15.1...v0.15.2
Updated windows and windows-core crates to version 0.60
windows and windows-core crates to version 0.60Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.15.0...v0.15.1
Added support for newtype structs and serde flatten by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/110
Example for newtype structs:
#[derive(Deserialize, Debug)]
struct Win32_OperatingSystem(pub HashMap<String, Variant>);
let system = wmi_con.query::<Win32_OperatingSystem>().unwrap();
Example for serde flatten:
#[derive(Deserialize, Debug)]
struct Win32_OperatingSystem {
Caption: String,
Name: String,
#[serde(flatten)]
extra: HashMap<String, Variant>,
}
#[derive(Deserialize, Debug)]
#[serde(rename = "Win32_OperatingSystem")]
struct Win32_OperatingSystemWrapper(pub Win32_OperatingSystem);
let system = wmi_con.query::<Win32_OperatingSystemWrapper>().unwrap();
Breaking Changes:
struct_name_and_fields function now returns an Option for the struct's fields (which is None in case of a newtype struct).Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.14.5...v0.15.0
Derive Clone for Variant in https://github.com/ohadravid/wmi-rs/commit/406e3022b730f45d0e74d03bbe34a06137a9eadb
Clone for Variant in https://github.com/ohadravid/wmi-rs/commit/406e3022b730f45d0e74d03bbe34a06137a9eadbFull Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.14.4...v0.14.5
chore(deps): update windows requirement from 0.58 to 0.59 by @dependabot in https://github.com/ohadravid/wmi-rs/pull/105
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.14.3...v0.14.4
Add support for executing WMI methods by @TechnoPorg in https://github.com/ohadravid/wmi-rs/pull/104
Example:
let in_params = CreateParams {
CommandLine: "calc.exe".to_string(),
};
let out = wmi_con
.exec_class_method::<Win32_Process, CreateParams, CreateOutput>("Create", in_params)
.unwrap();
assert_eq!(out.ReturnValue, 0);
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.14.2...v0.14.3
chore(deps): update thiserror requirement from ^1 to ^2 by @dependabot in https://github.com/ohadravid/wmi-rs/pull/101
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.14.1...v0.14.2
Add support for setting IWbemContext by @samin-cf in https://github.com/ohadravid/wmi-rs/pull/103
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.14.0...v0.14.1
Improve Variant and SafeArray implementations by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/100
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.13.4...v0.14.0
Update to windows 0.58 by @Jasper-Bekkers in https://github.com/ohadravid/wmi-rs/pull/98
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.13.3...v0.13.4
Support for unit enum desr by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/91 & @omer54463 in https://github.com/ohadravid/wmi-rs/pull/92
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.13.2...v0.13.3
Added Debug into #[derive] by @NidhiHemanth in https://github.com/ohadravid/wmi-rs/pull/81
windows crate to 0.52 by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/89Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.13.1...v0.13.2
chore(deps): update criterion requirement from 0.4 to 0.5 by @dependabot in https://github.com/ohadravid/wmi-rs/pull/80
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.13.0...v0.13.1
Add FilterValue::Str[ing]Like by @mon in https://github.com/ohadravid/wmi-rs/pull/76
#[non_exhaustive] by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/77Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.12.2...v0.13.0
Add cargo fmt and cargo clippy to CI by @FantasyTeddy in https://github.com/ohadravid/wmi-rs/pull/70
cargo fmt and cargo clippy to CI by @FantasyTeddy in https://github.com/ohadravid/wmi-rs/pull/70Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.12.1...v0.12.2
Allow creation of multiple COMLibrary instances by @FantasyTeddy in https://github.com/ohadravid/wmi-rs/pull/69
COMLibrary instances by @FantasyTeddy in https://github.com/ohadravid/wmi-rs/pull/69Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.12.0...v0.12.1
Migration from winapi to windows-rs crate by @vthib in https://github.com/ohadravid/wmi-rs/pull/68
WMIError, see #68 for more details.Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.11.5...v0.12.0
feat: properly handle cancellation of async notification by @vthib in https://github.com/ohadravid/wmi-rs/pull/66
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.11.4...v0.11.5
Little changes for workflows and cargo.toml by @MineBartekSA in https://github.com/ohadravid/wmi-rs/pull/61
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.11.3...v0.11.4
chore(deps): update criterion requirement from 0.3 to 0.4 by @dependabot in https://github.com/ohadravid/wmi-rs/pull/59
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.11.2...v0.11.3
Use a timeout when calling ConnectServer by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/57
ConnectServer by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/57Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.11.1...v0.11.2
feat: handle all integer types in safearray_to_vec by @vthib in https://github.com/ohadravid/wmi-rs/pull/54
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.11.0...v0.11.1
Stop calling CoUninitialize, make COMLibrary: Copy + !Send by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/53
CoUninitialize, make COMLibrary: Copy + !Send by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/53
WMIConnection::new now accepts an instance of COMLibrary (and not an Rc<COMLibrary>).COMLibrary was Send, and so could be moved to a different thread where COM was not initialized.Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.10.0...v0.11.0
Drop dependency on async-std by using WMI's "native" async by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/50
async-std by using WMI's "native" async by @ohadravid in https://github.com/ohadravid/wmi-rs/pull/50
Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.9.3...v0.10.0
Change chrono to be a default-feature, and add a time feature by @poliorcetics in https://github.com/ohadravid/wmi-rs/pull/45 and @ohadravid in https:
chrono to be a default-feature, and add a time feature by @poliorcetics in https://github.com/ohadravid/wmi-rs/pull/45 and @ohadravid in https://github.com/ohadravid/wmi-rs/pull/47Full Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.9.2...v0.9.3
Use new From impl added in com 0.5 to avoid an unwrap
From impl added in com 0.5 to avoid an unwrapFull Changelog: https://github.com/ohadravid/wmi-rs/compare/v0.9.1...v0.9.2
Fix CIMTYPE CHAR16 support by @vnagarnaik in https://github.com/ohadravid/wmi-rs/pull/40
CHAR16 support by @vnagarnaik in https://github.com/ohadravid/wmi-rs/pull/40Added CIMTYPE support in #33, so Variants returned from WMI are converted to the appropriate type even when the actual VARIANT type might be different
CIMTYPE support in #33, so Variants returned from WMI are converted to the appropriate type even when the actual VARIANT type might be different. Queries that return a HashMap<String, Variant> might return different types of variants, but queries that return serde-deserialized structs aren't affected.Replace unimplemented!() statement from safearray.rs with an error by @yusufpapurcu in #33
unimplemented!() statement from safearray.rs with an error by @yusufpapurcu in #33Add async query support #30 by @apennamen 🎉 🎉
wmi::query::build_query for building queries using filtersFix soundness issue with handling of BSTRs by @MaulingMonkey
Added serde derive(Serialize) to Variant (#23) by @yusufpapurcu
derive(Serialize) to Variant (#23) by @yusufpapurcuAdd unsafe with_initialized_com for WMIConnection
with_initialized_com for WMIConnectionReplace failure with thiserror - #20 by @darkskygit Added support for f32,f64 values - #17 by @robot-rover
Replace failure with thiserror - #20 by @darkskygit Added support for f32,f64 values - #17 by @robot-rover
Crate can now be built using the stable compiler (by @Codeusa )
Crate can now be built using the stable compiler (by @Codeusa )
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added WMIDuration to handle duration values
Added WMIDuration to handle duration values
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.