> ## Documentation Index
> Fetch the complete documentation index at: https://docs.germainux.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WMI execution

> GermainUX can execute commands or scripts in Windows environments through Windows Management Instrumentation (WMI).

Components
[`Engine`](https://docs.germainux.com/main/germain-ux-engine)

Availability
2015.1 or later

GermainUX can execute commands or scripts in Windows environments through Windows Management Instrumentation (WMI). WMI Actions can automate system administration, maintenance, remediation, data processing, and other operational tasks.

> **[WMI Action Types](#wmi-action-types)**
>
> Choose the action type

> **[Configure a WMI Action](#configure-a-wmi-action)**
>
> Step-by-step WMI action setup

> **[Use an Existing Script](#use-an-existing-script)**
>
> Reuse saved scripts in actions

> **[Security Recommendations](#security-recommendations)**
>
> Secure WMI setup guidance

## WMI Action Types

A WMI Action can be:

* Executed manually
* Run automatically on a schedule
* Triggered when an SLA condition is met

## Configure a WMI Action

1. Go to **GermainUX Workspace > Wizards**.

   ![WMI execution: Configure a WMI Action](https://mintcdn.com/germain-ux/aRWpCtnP62NYAs5c/images/main/wmi-execution/image-20260825-183723.png?fit=max\&auto=format\&n=aRWpCtnP62NYAs5c\&q=85\&s=d4eac5eb63fa8f31178e6470b7071e4d)
2. Search for **WMI Action**.
3. Click **Add** to open the wizard.
4. Enter a unique, descriptive name for the action.
5. Click **Next**.
6. Select the Windows server on which the action will execute.
7. Select the credentials used to connect to the remote server.
8. Enter the working directory containing the program or script.
9. Enter the command or script to execute—for example, a PowerShell `.ps1` or Windows Batch `.bat` file.
10. Add any required arguments.
11. Configure a schedule if the action should run automatically at specified times.
12. Select an SLA if the action should run when a monitored condition is met.
13. Review the configuration and save the action.

## Use an Existing Script

Instead of entering a command directly, you can select an existing script from the **Script** dropdown.

The selected script can then be:

* Run manually
* Executed on a schedule
* Triggered by an SLA

## Security Recommendations

* Use a dedicated Windows account with the minimum required permissions.
* Store credentials in a secure GermainUX credential configuration.
* Never embed passwords in scripts or arguments.
* Validate dynamic arguments before execution.
* Configure timeouts and execution limits.
* Test the action in a non-production environment before enabling automatic execution.
* Enable logging and failure notifications to track execution results.

## Get Help

> **[Contact GermainUX Support](https://docs.germainux.com/main/support.md)**
>
> The Germain Team can help you set this up.

> **Can't find what you need?**
>
> Search all GermainUX docs with **Ctrl + K**, or use the feedback buttons at the bottom of this page to tell us what is missing.

The content of this document is proprietary to GERMAIN SOFTWARE.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.