Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    What if you just disable history? Commented Dec 6, 2019 at 20:18
  • The sysprep script is executing in its own non-interactive shell, so should be unable to modify your shell. My best immediate thought would be to have the script chmod u-w the HISTFILE, but that would leave the HISTFILE unwritable going forward. Commented Dec 6, 2019 at 20:22
  • Unfortunately neither of these options are viable for my circumstance because I need history enabled for machines spawned from the template. Commented Dec 7, 2019 at 22:35