Run powershell script on client server - Windows error code 8013150a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2025 01:51 AM
Hi
We are trying to run a powershell stored on external client server on their C:drive, but we keep getting a powershell execution error -
"Step Status": { "code": 1, "message": "Powershell execution error"
with Windows error code 8013150a
We are using flow designer action
Powershell step - We have a service account credentials, and specific mid server of the client selected, the connection step is successful, and we have tried to run a batch file, and that run successfully and logged, but as soon as we change it to a ps file, it fails with the above codes.
We have to run the script on the clients c:drive due to security of not being able to run AD spoke scripts or scripts in ServiceNow side.
Just trying to run a simple powershell script just to get the connection
param (
[string]$SA_Username,
[string]$SA_Password,
[string]$agressoID
)
$Env:SA_Username = $SA_Username
$Env:SA_Password = $SA_Password
$Env:agresso ID = $agressoID
Set-ExecutionPolicy -ExecutionPolicy Bypass
& "C:\ServiceNow\Test Scripts\Agresso_Lookup.ps1"
inputs
We need to get this connected and run, so we can work on the AD scripts for starters, leavers and extending temp staff
Please could anyone help?