我正在运行一系列 Remove-NetIPAddress 和 New-NetIPAddress powershell 命令。它们在本地机器上以交互模式运行良好。
通过 ansible 运行时,它们会失败,因为它们通常会提示用户确认操作。
我试过 -Force, -Confirm:$false 无济于事。当我使用它们时,戏剧只是挂起。
有谁知道如何让“交互式”powershell命令工作?
我正在运行一系列 Remove-NetIPAddress 和 New-NetIPAddress powershell 命令。它们在本地机器上以交互模式运行良好。
通过 ansible 运行时,它们会失败,因为它们通常会提示用户确认操作。
我试过 -Force, -Confirm:$false 无济于事。当我使用它们时,戏剧只是挂起。
有谁知道如何让“交互式”powershell命令工作?
我无权访问这些 cmdlet ATM,但如果它的行为确实无法阻止提示,则可以解决它: