title: Shut-down script on Windows to delete a registry key?
body: <p><strong>EDIT:</strong> This was formerly more explicitly titled: - "<strong>Best solution to stop Kontiki's KHOST.EXE from loading automatically at start-up on Windows XP?</strong>"</p>
  
  <p>Essentially, whenever the <strong><a href="http://www.channel4.com/4od/index.html" rel="nofollow noreferrer">40D</a></strong> application is run it sets up <strong>khost.exe</strong> to automatically start-up with Windows.  This is annoying as it increases my boot up time by a couple of minutes and I don't even use the P2P aspect of 4OD anyway.</p>
  
  <p>The registry keys that are set are:</p>
  
  <pre><code>Command: C:\Program Files\Kontiki\KHost.exe -all
  Description: kdx
  Location: HKU\S-1-5-21-1757981266-1960408961-839522115-1003\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  Name: kdx
  Setting ID:
  User: LAPTOP\Me
  
  Command: "C:\Program Files\Kontiki\KHost.exe" -all
  Description: 4oD
  Location: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  Name: 4oD
  Setting ID:
  User: All Users
  </code></pre>
  
  <p>I'm assuming some kind of <strong>start-up</strong> or <strong>shut-down</strong> <strong>script</strong> to delete these registry keys would be the best solution, but I'm not that up with <strong>.vbs</strong> or <strong>.bat</strong> scripting or where I'd put them to automatically run at an appropriate time.</p>
  
  <p>I know there is a <strong><a href="http://odmonitor.blogspot.com/" rel="nofollow noreferrer">TV On-Demand Monitor application</a></strong>, but I don't really need to be running yet another process, I just need to delete the registry keys as I describe above.</p>