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.

link|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
feedback

1 Answer

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?

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

Your Answer

 
or
required, but never shown

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