- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2020 03:33 PM
I am running a custom power shell activity and the output result is returning a blank value, when i run the same power shell script on my dev and test instance the output returns the desired value, i moved it to prod and now the output is blank. totally lost on this, i know my PS script works because i get an output on dev and test
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2020 07:33 PM
Did you add the post processing script? like here

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2020 11:59 AM
Hi,
I know this is kind of weird but can you test the powershell activity alone in production.
Just try to execute below script and test if this works:
$env:computerName
This should give you your mid server name back.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2020 01:08 PM
running $env:computerName i received
"hresult": null,
"output": "\nMID-PROD-001\n",
"errorMessages": null,
"debugMessages": null,
"credentialDebugInfo": "2020-03-23 13:07:10 Tried Credential: name=sn_mid, affinity: yes, status=success, sysid=ae807b336f50220048ed9c0cbb3ee453, username=sn_mid, type=Windows, order=100\r\n",
"eccSysId": "3f78c2ecdb37c0108eb7776b8c961907",
"tags": {
"__text__": "\nMID-PROD-001\n"
}
}
when i move to run the command i want i receive
COMMAND: (Get-AdmPwdPassword -ComputerName ${activityInput.DeviceName}).Password
{
"hresult": null,
"output": "\n",
"errorMessages": null,
"debugMessages": null,
"credentialDebugInfo": "2020-03-23 13:15:24 Tried credential: MID service account, status=success\r\n",
"eccSysId": "986a82a0db77c0108eb7776b8c96198b",
"tags": {
"__text__": "\n"
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2021 03:45 AM
Hi Danny
I have a similar issue did you find any solution? If yes please share with me