title: Use PowerShell to run virus scan on multiple servers
body: <p>I'm trying to run a virus scan on a list of servers in our environment. There are hundreds of machines, so we'd like to run the scan (using a command line prompt that we already have) around 10 at a time. We're totally new to PowerShell so any help would be really appreciated. We have a general idea of what commands we need to use -- here's how we think it might work for now:</p>
  
  <pre class="lang-powershell prettyprint-override"><code>$server = Get-Content "serverlist.txt"
  $server | % {
    $VirusScan = { Scan32.exe }
    Invoke-Command -ScriptBlock { $VirusScan } -computerName $server -ThrottleLimit 10 -Authentication domain/admin 
  }
  </code></pre>
  
  <p>Does anyone have any suggestions on how we might orchestrate this?</p>