【发布时间】:2017-12-12 10:02:58
【问题描述】:
我们正在使用 Microsoft Release Management 2013 部署到开发/测试/生产。构建/部署服务器是 MS2012。应用服务器是 MS2008。我让它工作和部署,但昨天我开始收到这条消息。它所做的只是使用“运行命令行”在应用程序服务器上运行批处理文件,该文件进行备份、设置 Windows 服务启动类型、停止服务等。如果我直接在应用程序服务器上运行批处理文件,它只运行美好的。我在本文中添加了更详细的日志记录,但没有收集其他信息来进行调试。服务器上的 Powershell 最近也没有更新。
有人知道 *.ps1 文件应该在哪里吗?我搜索了本地和服务器,但什么也没找到。有人遇到过吗?
错误信息:
The term './RunCommandLine.ps1' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:21
+ ./RunCommandLine.ps1 <<<< -FilePath '\\unc-path\batchfile.bat' -Arguments ''
+ CategoryInfo : ObjectNotFound: (./RunCommandLine.ps1:String) [] , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
【问题讨论】:
标签: powershell ms-release-management