--- title: PowerShell probe description: The PowerShell Probe executes PowerShell V2 scripts on the MID Server host. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/discovery/c\_PowershellProbe.html release: australia product: Discovery classification: discovery topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 2 breadcrumb: [List of Discovery probes, Discovery probes and sensors, Using Discovery, Discovery, ITOM Visibility, IT Operations Management] --- # PowerShell probe The PowerShell Probe executes PowerShell V2 scripts on the MID Server host. PowerShell scripts are defined as probe parameters with the filename as the parameter name. It is available as a Probe probe type by specifying PowerShell as the probe's ECC queue topic. ## PowerShell probe parameters
| Parameter name | Description |
|---|---|
| source | \[Required\] The initial host to connect to. **Default:** None |
| <script name>.ps1 | \[Required\] The filename of the PowerShell script to run. Replace **<script name>** with a valid filename prefix.**Default:** None |
| powershell\_command\_parameter\_passing | Specifies whether to pass script parameters on the command line. Regardless of this parameter's value, ServiceNow makes all script parameters on the command line automatically available to PowerShell scripts as environment variables. **Default:** false |
| powershell\_param\_<script parameter name> | Passes additional parameters to the PowerShell script to be executed. Each parameter will appear to the script as an environment variable in the format **$env:SNC\_<script parameter name>**. Parameters with this prefix are not considered encrypted and are passed through to the script untouched. Make sure you select the appropriate parameter between **powershell\_param\_<script parameter name>** and **powershell\_<script parameter name>**. Using the wrong prefix results in errors in the PowerShell execution, which is passed back to the instance in the ECC queue input.**Default:** None |
| powershell\_<script parameter name> | Passes additional parameters to the PowerShell script to be executed. Each parameter will appear to the script as an environment variable in the format **$env:SNC\_<script parameter name>**. The MID Server assumes that any parameter with this prefix is encrypted and attempts to decrypt it. Make sure you select the appropriate parameter between **powershell\_param\_<script parameter name>** and **powershell\_<script parameter name>**. Using the wrong prefix results in errors in the PowerShell execution, which is passed back to the instance in the ECC queue input**Default:** None |
| debug | Enables debug log output during the probe.**Default:** false |
| credentials\_debug | Displays a <credentials\_debug> section in the ECC queue, which can help you troubleshoot credentials. If you set this property to true, credential troubleshooting information is output to the ECC queue, even if the credentials succeed. **Default:** false |