【发布时间】:2020-07-08 04:21:19
【问题描述】:
我在为 Azure Devops 制作自定义任务时遇到问题:当task.json 调用 PowerShell 时,我需要以管理员权限运行 PowerShell 脚本
"execution": {
"PowerShell3": {
"target": "$(currentDirectory)\\X.ps1",
"workingDirectory": "$(currentDirectory)"
}
}
在上面的代码中,如何定义PowerShell可以在管理员权限下运行?
【问题讨论】:
标签: json powershell azure-pipelines azure-devops-extensions