https://github.com/sheepla/wmish
A command line client for WMI (Windows Management Instrumentation)
https://github.com/sheepla/wmish
cli shell windows wmi wmi-scripting
Last synced: 20 days ago
JSON representation
A command line client for WMI (Windows Management Instrumentation)
- Host: GitHub
- URL: https://github.com/sheepla/wmish
- Owner: sheepla
- Created: 2026-05-02T13:35:25.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2026-05-02T14:38:20.000Z (about 2 months ago)
- Last Synced: 2026-05-02T15:31:47.391Z (about 2 months ago)
- Topics: cli, shell, windows, wmi, wmi-scripting
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wmish
```plaintext
__ _ _
\ \ __ ___ __ ___ (_)___| |__
\ \\ \ /\ / / '_ ` _ \| / __| '_ \
/ / \ V V /| | | | | | \__ \ | | | ____
/_/ \_/\_/ |_| |_| |_|_|___/_| |_|[____]
> A command line tool for WMI _
```
## About
**wmish** is a command line tool for [WMI (Windows Management Instrumentation](https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page) written in Rust.
**WMI** allows easy access to various Windows resources, making it particularly useful for system administrators, security researchers, and engineers who focus on low-level processing.
**wmish** is a simple tool for accessing WMI from the command line. It supports both interactive mode and script mode, and is convenient for automating system administration tasks and collecting security-related information.
## Features
- **Non-interactive mode**
- **Interactive mode with rich Tab key completions**
- **Script mode**
## Commands
- `wmish run FILE.wmish`: Evaluate script and execute inline commands
- `wmish shell`: Interactive-shell mode that supports Tab-completion
- `wmish query QUERY`: Interactive-shell mode
## Inline Commands (WIP)
Inline commands are available for `shell` and `run` command. Unchecked items are not yet implemented.
- [x] `NAMESPACE `: Move around namespaces hieralchy like `cd` command
- [x] `CLASSES`: Show a list of classes on the current namespace like `ls` command
- [ ] `SHOW `: Show properties and methods detailed informations such as names, types, and descriptions, etc... for the specified class name
- [x] `SELECT FROM WHERE ...`: Query to WMI in WQL (WMI Query Language)
- [x] `FORMAT CSV|TABLE|JSON`: Set output format (JSON is pretty-printed)
- [ ] `CALL < ...> WITH `
- [x] `MOF `: Get MOF (Managed Object Format) of specified class name
## Examples
TODO