title: Windows 7 Group Policy Editor- shutdown batch file not executing
body: <p>Trying to run a simple batch file at windows shutdown. Filename is <code>log.bat</code>, contents is single line:</p>
  
  <pre><code>DEL C:\Users\tom\.VirtualBox\*.log*
  </code></pre>
  
  <p>I've tried placing this file at root, at <code>windows/system32/grouppolicy/machine/scripts/shutdown</code>, and at <code>windows/system32/grouppolicy/user/scripts/logoff</code>. I've tried running it as a shutdown script and as a logoff script. </p>
  
  <p>The batch file works perfectly when double clicked from any location. It will not execute from GroupPolicy though. I've followed the instructions found here and elsewhere but it just doesn't work. Any ideas what I'm doing wrong? Thank you!</p>
  
  <p>PC is standard home desktop, user has admin privileges and owns the files to be deleted.</p>