PowerShell Script

<< Click to Display Table of Contents >>

Navigation:  Scripts >

PowerShell Script

A PowerShell script which can be executed by the PowerShell sensor.

Name

The name to identify this script.

Content

The content which should be executed.

To pass parameters to the script the param instruction may be used. The values for the parameters can can be assigned individually in the specific sensor.

A param instruction might look like this:

param (

[TYPE]$var1=VALUE,

[TYPE]$var2=VALUE

)

Variables

The variables which should be extracted after execution of the script and made available in the collected data. The selected data type decides how the extracted value is handled and what operators are available when the value is used in a condition.