Deployment Architecture

executionpolicy powershell

jip31
Motivator

hi
i use a powershell script with a scheduled task
the script is in this folder C:\Program Files\xxx\etc\apps\xxx\bin\pingstatus.ps1
i have parameter a PowerShell entry in splunk like this : . "$SplunkHome\etc\apps\Splunk_TA_windows\bin\pingstatus.ps1"

i have to modify automatically the execution policy :powershell.exe -executionpolicy unrestricted -command .\test.ps1)
i try to do this : powershell.exe -executionpolicy unrestricted -command .\pingstatus.ps1) but it dont works
could you help me please???
regards

Tags (1)
0 Karma

jip31
Motivator

i have done this:
PowerShell.exe -ExecutionPolicy Bypass -File '.\Program Files\Splunk\etc\apps\Splunk_TA_windows\bin\pingstatus.ps1'
it works perfectly from PowerShell but not from splunk entry data

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...