Skip to main content

Crate sysaudit

Crate sysaudit 

Source
Expand description

§sysaudit

Windows System & Software Auditor library.

Provides read-only access to:

  • System information (OS, CPU, network interfaces)
  • Installed software (from Windows Registry)
  • Industrial software detection (Citect, ABB, Rockwell, etc.)
  • Windows Updates (via WMI)

§Example

use sysaudit::{SystemInfo, SoftwareScanner};

fn main() -> Result<(), sysaudit::Error> {
    let system = SystemInfo::collect()?;
    println!("Computer: {}", system.computer_name);

    let software = SoftwareScanner::new().scan()?;
    for sw in software {
        println!("{} v{}", sw.name, sw.version.as_deref().unwrap_or("?"));
    }
    Ok(())
}

Re-exports§

pub use error::Error;
pub use industrial::IndustrialScanner;
pub use industrial::IndustrialSoftware;
pub use industrial::Vendor;
pub use software::RegistrySource;
pub use software::Software;
pub use software::SoftwareScanner;
pub use system::NetworkInterface;
pub use system::SystemInfo;
pub use updates::WindowsUpdate;

Modules§

error
Error types for sysaudit.
industrial
Industrial software detection module.
output
Output formatting module.
software
Installed software enumeration module.
system
System information module.
updates
Windows Updates module.