Running PowerShell Scripts Failed
Symptoms
The error message "module_stderr": "Test-Path : Cannot bind argument to parameter 'Path' because it is an empty str\r\ning. is displayed.
Cause Analysis
Ansible is used to deploy the action Run PowerShell Script. The Windows path incorrectly uses a backslash (\) instead of a forward slash (/).
Solution
Check the entered path and ensure that the path uses forward slashes (/).
Running PowerShell Scripts FAQs
- Running PowerShell Scripts Failed
- Deployment Is Successful But Does Not Achieve the Expected Result
- Parameters Contain Backslashes (\)
- No Host Exists in the Environment.
- Environment Does Not Exist.
- Failed to Deploy an Application on a Windows Host
- Deployment Blocked by Third-Party Antivirus Software
- Invalid Path
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more