更新时间:2023-05-29 GMT+08:00
分享

Executing powershell script 失败

问题现象

日志信息提示“"module_stderr": "Test-Path : Cannot bind argument to parameter 'Path' because it is an empty str\r\ning.”

原因分析

部署PowerShell步骤底层使用ansible,使用windows路径候,需要使用正斜杠“/”而不是常见的反斜杠“\”

处理方法

检查输入的脚本路径,确保路径中使用是正斜杠“/”

分享:

执行PowerShell脚本 所有常见问题

more