title: Reliable access to locked remote computer
body: <p><strong>What I have:</strong> I have Windows 7 on my home PC.</p>
  
  <p><strong>What I'm trying to do:</strong> I'm trying to keep TeamViewer running at home so I can always get to my home computer.  The other day it got completely messed up and would not let me connect but everything else on the PC was just fine.</p>
  
  <p><strong>Items I've looked at:</strong></p>
  
  <p>I looked at this thread and it does not seem to apply to what I need:</p>
  
  <p><a href="https://stackoverflow.com/questions/14154598/is-it-possible-to-start-teamviewer-to-accept-connections-from-commandline/16323024#16323024">Is it possible to start Teamviewer, to accept connections, from commandline?</a></p>
  
  <p>... but it does not appear to be what I'm looking for.</p>
  
  <p>I have looked at this:</p>
  
  <p><a href="https://serverfault.com/questions/48600/how-can-i-automatically-restart-a-windows-service-if-it-crashes">https://serverfault.com/questions/48600/how-can-i-automatically-restart-a-windows-service-if-it-crashes</a></p>
  
  <p>... and to test the script at the above URL, I stopped a service on my computer and pointed the above vbs script to that service and the vbs script will not restart that service, so that's not working.</p>
  
  <p><strong>What's happening:</strong></p>
  
  <p>From time to time on my home computer, TeamViewer hangs or gets messed up in some way and I cannot connect to my home computer.  The last time this happened, the TeamViewer UI was still running but there was a little red dot next to the tray icon and the id numbers and password were blank in the UI so I had to right click and kill it and restart the computer and all was OK.</p>
  
  <p><strong>What I'd like to do:</strong></p>
  
  <p>Is there a way I can run some kind of script or something that will completely kill all TeamViewer processes and services and restart it completely?  I'd like to schedule this type of activity once an hour so I can be assured of pretty much always being able to get into my home computer or else just wait an hour and it should be back up and available?</p>
  
  <p>I have 20 years in IT with networking background, databases, GUI development, website development, hardware and software installation but no experience in brain surgery.  I've given it a good try but am now asking for some help.</p>
  
  <p>Thanks.</p>