Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if there is a way to mount some sort of a hook on a system variable in Win7 which would allow me to trace which application and at what time referenced it. I would like to know this in order to clean up some unused environment variables.


share|improve this question

I'm afraid, this is not possible as every application (process) gets a private copy of environment variables block from its parent process. There is a way to audit modification of system/user wide environment variable, but not reading a value of a variable.

Hope that helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.