Microsoft Azure Runbook不执行PowerShell脚本
我试图在Micrososft Azure Runbook中运行下面的powershell脚本。 但是,我不断收到错误: 脚本如下: #### Provide the computer name in $computername variable $ServerName = "testauto","LocalHost","Server-2","Not-Exists", "Fake-computer", "Dc-1" ##### Script Starts Here ###### foreach ($Server in $ServerName) { if (test-Connection -ComputerName $Server -Count 2 -Quiet ) { write-Host "$Server is alive and Pinging " -ForegroundColor Green } else { Write-Warning "$Server seems dead not pinging" […]