---
title: "How to run a PowerShell script from the Active Console"
description: "Running a PowerShell script from the Active Console requires configuring Gateway Commands with runLocation set to Netprobe. The user must have permission if Gateway Authentication is enabled, and the target data items must belong to a Windows Netprobe."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004021065-geneos-how-to-run-a-powershell-script-from-the-active-console/index.html"
---
## Commands

This can be done by configuring the [Gateway Commands](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_commands_tr/index.html#Heading-overview). The command's *runLocation* must be set to **Netprobe** and its target data items (e.g. cell, dataview, managed entity, sampler, netprobe, etc) must belong to a Windows Netprobe.

[Here is a command configuration](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_commands_tr/index.html#commands--command--usercommand--runlocation) for reference.

## Gateway Authentication is enabled

If this is enabled, [ensure that the user has permission to execute the said command](https://docs.itrsgroup.com/docs/geneos/current/security/access-controls/geneos_authentication_tr/index.html#command-permissions).

## Related downloads

- [powershell_command.xml](/faq/downloads/geneos/115004021065-6881071593501-powershell_command.xml)


