title: Delete random services with number name script (ex. 10009752)
body: <p>I work for a IT consulting company and one of our clients got hit with a virus that created a bunch of random exe files on the PC and then it created services to try to run those files automatically. I've since removed the virus from all machines, but there are a lot of orphaned services left I need to remove. </p>
  
  <p>All in all there are 4,000 unique services combined from all of the computers at their facility. The services are random numbers and I am hoping to find a way to remove them with a script of some sort, but I can't figure out how to do a wildcard for the commands I know....</p>
  
  <p>I've tried</p>
  
  <pre><code> reg delete hklm\system\currentcontrolset\services\1*
  </code></pre>
  
  <p>and</p>
  
  <pre><code> sc delete \\pcname 1*
  </code></pre>
  
  <p>without any luck. Any help would be appreciated so I don't have to go to each machine (again) and manually delete the services. Sorry I am always learning new scripts by going out and seeing what other people have created, but I can't find anything to even build off of for this situation. </p>
  
  <p>Thank you in advance.</p>