JSI Tip 4604. How do I delete history in a logon script?

Using the technique from tip 4603, I include the following command sequence in a logon script:

pushd "%USERPROFILE%\Local Settings"
attrib -S History
rd /s /q history
md History
attrib +S History

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.