PowerShell On-Premise plugin

This plugin is one of two available for PowerShell. Make sure to choose the correct version depending on your requirements:

Currently only PowerShell v7 is supported for these plugins

For more information about what this plugin does and the data streams it retrieves, see:


Run user-created PowerShell scripts on Relay Agents.

This is an on-prem data source.

How to add the data source

To add a data source click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Configure data source page.

Before you start

Create the PowerShell scripts and store the files on the machine in a folder readable by the agent

Your PowerShell scripts can serve two different functions:

Import script

In case you need to import new objects into SquaredUp, you need an import script. This script contains the definitions for objects and their links in the Knowledge Graph. There can only be one import script per PowerShell On-Premise data source.

You can add more PowerShell On-Premise data sources to SquaredUp if you want to use different import scripts, and they can all use the same folder.

Data Stream script

All other scripts are Data Stream scripts. Those scripts contain the different Data Streams you want to use when you are creating tiles for a dashboard.

Configuring and deploying an agent

If you have already created an agent in SquaredUp that you can use for this data source, you can skip this step and choose the agent group you want to use while adding the data source.

See one of the following, depending on your platform type:

Configuring the data source

  1. Display Name:
    Enter a name for your data source. This helps you to identify this data source in the list of your data sources.

  2. Agent Group:
    Select the Agent Group that contains the agent(s) you want to use.

  3. Scripts Directory:
    Enter the path to the directory where you store the PowerShell scripts on the machine you deployed the agent on.

    The path must be written as an absolute path, for example
    or, if you are using a network share,

  4. Import Script:
    Optional. If you want to use a script for importing objects into SquaredUp, you can specify that script here by entering its full file name, for example

    The import script must be stored in the same directory you defined above.

  5. “Only allow signed scripts (Windows only)” check-box:
    If you check this box, no unsigned PowerShell scripts will be executed. This applies to all scripts run by the data source, not just the import script.
  6. Optionally, select whether you would like to restrict access to this data source instance. By default, restricted access is set to off.

  7. Click Add.

    You can also add a data source from Settings > Data Sources > Add data source, but sample dashboards are not added when using this method.

    If you defined an import script, it will run shortly and the objects will subsequently appear in the dashboard in the new workspace.

Using the PowerShell On-Premise data streams

Data streams

The following data streams are installed with this plugin.

Writing a custom data stream (advanced users)

Optionally, you can choose to create your own custom data streams.

  1. Go to Settings > Advanced > Data Streams.
  2. Add a new Data Stream with the following settings:
    Display Name
    This name will be displayed when you are creating tiles on a dashboard and can pick Data Streams.
    Data source
    Choose the PowerShell On-Premise data source.
    Entry point
    You can either use a scope of objects (list scope) or not limit the scope to specific objects (no scope).
    If you use the list scope, the Data Stream will only be visible when creating a tile that has those objects in its scope. Which objects are included is defined by the matches parameter in the Data Stream JSON.

    You can use all parameters you used for defining vertices in the import script as criteria for which objects to include (e.g. a specific type of object).

  3. Enter the JSON for the Data Stream in the code box.

Was this article helpful?

Have more questions or facing an issue?