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.

Is there a way on Windows to trace the changes from applications or scripts to environment variables on startup?

I changed an environment variable in the System->Advanced->Environment Variables dialog but its value is reset when I reboot my computer (I am an administrator on my machine). I'd like to track down the application that changes this variable.

share|improve this question
    
Changes made to the environment variables using that method should be permanent. If the changes revert on the next restart, you're probably changing something integral to Windows, like the value for ProgramFiles. That's an example of something that can be changed, but must be changed in more than one place (usually in the registry). It might help if you could tell us which variable you're trying to change. –  boot13 Sep 21 '10 at 22:11

1 Answer 1

up vote 0 down vote accepted

I'm a n00b on Winders, but aren't environment variables always written to the registry? Possibly look for a registry monitor?

share|improve this answer
    
You're right. I used RegMon and found the offending program. Thanks –  Alexandre Beaulieu Sep 22 '10 at 17:18

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.