title: Scheduled task restart service with dependent services
body: <p>I have a Windows 2008 R2 server that acts as a Print Server.</p>
  
  <p>Almost all of the problems that occur on this server is fixed by restarting the Print Spooler service.</p>
  
  <p>I came up with a plan to restart the service automaticly every night, and i found this command:</p>
  
  <blockquote>
    <p>Powershell.exe -ExecutionPolicy Bypass -Command { Restart-Service -Name spooler }</p>
  </blockquote>
  
  <p>The problem is that my spooler has three services that depend on it, so this command will not work. Is it safe to add a <em>-force</em> command after "spooler" or is there any other way to do it?</p>