---
title: "Policy Templates: Process/Command Output"
description: "Run commands on endpoint devices with Netwrix Change Tracker using Agent-based or Agentless monitoring, and apply a regular expression to the output."
sidebar_position: 110
---

# Policy Templates: Process/Command Output

Where required, Netwrix Change Tracker can also execute commands on the endpoint device.

:::note
Commands require pre-approval before use.
:::

Change Tracker pre-approves all standard commands used in Compliance Reports and the built-in
Policy Templates, but new commands you add may require admin approval. See [Allowed
Commands](/docs/changetracker/admin/settingstab/allowedcommands.md) for additional information.

- **Agent-Based Monitoring** – For Agent-based monitoring, the Agent executes the commands directly
  and stores the initial baseline in the local Agent database, reporting any subsequent changes back
  to the Hub. The Agent runs the commands using whichever service account is assigned to it. On
  Windows, commands run from the standard `Windows\System32` shell, so you may need to specify a
  full executable path, for example:

  ```
  cmd /C %systemroot%\system32\inetsrv\appcmd list VDIR /text:VDIR.NAME
  ```

![ProcessCommandOutput](/images/changetracker/admin/settings/policytemplates/processcommandoutput.webp)

- **Agentless Monitoring** – The **Master Proxy Agent** in use executes commands indirectly and
  stores the initial baseline in the **Proxy Agent** database, reporting any subsequent changes back
  to the Hub. It runs the commands using whichever service account is assigned in the
  **Credentials**.

![ProcessCommandOutputCredentials](/images/changetracker/admin/settings/policytemplates/processcommandoutputcredentials.webp)

- **Use of RegEx** – Whether using Agent-based or Agentless Command Output Trackers, you can apply a
  regular expression to the command output to filter or match specific keywords or patterns. You can
  still use any device-offered RegEx capability, such as `egrep` on Linux, instead of or in addition
  to the Agent's regex.

The Agent only trusts a signed **Configuration Template** issued from its assigned Hub. Contact
[Netwrix Support](https://www.netwrix.com/support.html) for additional information.
