title: Check with powershell if service is installed on multiple computers
body: <p>I'm looking for help with my script again :)</p>
  
  <p>I have a script that will query list of servers to find if specific service is installed. This works fine. However, I know that there are some servers in my list that I don't have access to, or there are different credentials. How do I make this visible in output? Because I only get output that service is not installed, which is not true, I just don't have correct credentials.</p>
  
  <pre><code>$name = "BESClient"
  $servers = Get-content C:\list.txt
  
  function Confirm-WindowsServiceExists($name)
  {   
     if (Get-Service -Name $name -Computername $server -ErrorAction Continue)
     {
         Write-Host "$name Exists on $server"
         return $true
     }
         Write-Host "$name does not exist on $server"
         return $false
  }
  
  ForEach ($server in $servers) {Confirm-WindowsServiceExists($name)}
  </code></pre>
  
  <p>Also, I'd like to have output formatted into the one line, e.g.:</p>
  
  <pre><code>Server1        Service running
  Server2        Service not installed
  Server3        no access
  etc...
  </code></pre>
  
  <p>Thanks a lot for any help.</p>