PowerShell. While statement continues executing command after condition has been changed to false

后端 未结 0 1422
予麋鹿
予麋鹿 2021-01-21 16:39

I have a PowerShell script that waits for a Service to start:

$ServiceName = \'asComSvc\'
$Service = Get-Service -Name $ServiceName
While ( $Service.status -ne \'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题