title: Batch file for restarting print spooler deletes desktop icons, anyone?
body: <p>Can anyone explain what has happened here?</p>
  
  <p>If this is ran on a machine on our domain without elevating it to admin, it deletes all desktop icons. I'm at a loss as to how or why? </p>
  
  <pre><code>@echo off
  net stop spooler
  IF NOT exist C:\Windows\System32\spool\PRINTERS\*.shd echo NO DOCUMENTS IN QUEUE ONCE THE SPOOLER HAS STARTED TRY PRINTING AGAIN
  IF NOT exist C:\Windows\System32\spool\PRINTERS\*.shd msg * NO DOCUMENTS IN QUEUE ONCE THE SPOOLER HAS STARTED TRY PRINTING AGAIN
  IF exist C:\Windows\System32\spool\PRINTERS\*.shd del C:\Windows\System32\spool\PRINTERS\*.shd
  IF exist C:\Windows\System32\spool\PRINTERS\*.spl del C:\Windows\System32\spool\PRINTERS\*.spl echo PRINTER QUE CLEARED PLEASE TRY PRINTING AGAIN msg * PRINTER QUE CLEARED PLEASE TRY PRINTING AGAIN
  net start spooler
  pause
  </code></pre>
  
  <p>Any advice would be gratefully appreciated as it's caused a slightly major problem this morning and I'm in need of an explanation.</p>