This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

"PowerShell script error. An error occurred while creating the pipeline." how to fix?

FormerMember
FormerMember

One of my Powershell scripts fails to this error message "PowerShell script error. An error occurred while creating the pipeline.". I can succesfully run the same script on quite many different server so there shouldn't be nothing wrong with the script. I'm using agent with impersonation for this. When I run the script locally it works fine.

Any idea what might be wrong here?

  • There is very limited information on this error but from what little I was able to find it sounds like it may be an issue related to impersonation with PowerShell v5. If you are running PowerShell v5 please try and revert back to an earlier version to see if that resolves the issue.