title: To restart WinRM services
body: <p>I was trying to restart winRM services in multiple servers, but am getting below error can I get suggestions.</p>
  
  <pre><code>Restart-Service -ComputerName (Get-Content G:\12282019\Servers.txt) -ServiceName WinRM
  </code></pre>
  
  <p>error:</p>
  
  <blockquote>
    <p>Restart-Service : A parameter cannot be found that matches parameter
    name 'ComputerName'. At line:1 char:17
    + restart-service -ComputerName (Get-Content G:\12282019\Servers.txt) - ...
    +                 ~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Restart-Service], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.RestartServiceCommand</p>
  </blockquote>