Link to home
Start Free TrialLog in
Avatar of Fabio Marzocca
Fabio MarzoccaFlag for Italy

asked on

How to change TEMP environment for ALL users

I need a way to set my Windows 7 so that each time I add a new user to the PC it inherits the TEMP and TMP environment settings to C:\Temp instead of default windows 7 location (%USERPROFILE%\AppData|Local|Temp).

I have seen this cannot be done by changing the HKEY_CURRENT_USER in the Admin account, as it doesn't keep persistent thru all users.

I need this way works also for all existent users, modifying their TEMP environment centrally from Admin account.
Avatar of jakethecatuk
jakethecatuk
Flag of United Kingdom of Great Britain and Northern Ireland image

You need to change the registry value for HKEY_USERS\.Default\Environment\Temp to what you need.

Any new users that login will get the new value - this does not affect existing users thoug.
Avatar of Fabio Marzocca

ASKER

Thanks jake.. any way to change also on existing users?
Under HKEY_USERS will be all the users starting with S-1-5- etc.  Under each tree will be the Environment variables sub tree.  You can change it in there.
I have just tested as you said, modifying HKEY_USERS\Default\Environment  with the new directory. Created a new user, but the environment is still the default one: %USERPROFILE%\AppData|Local|Temp
ASKER CERTIFIED SOLUTION
Avatar of jakethecatuk
jakethecatuk
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial