Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks

share|improve this question

1 Answer 1

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

 
discard

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.