1 2 3 4 5 | $apache = Get-Service | where name -match "apache" if($apache.status -eq "Stopped") { Start-Service $apache.Name } |
1 2 3 4 5 | $apache = Get-Service | where name -match "apache" if($apache.status -eq "Stopped") { Start-Service $apache.Name } |