PDA

View Full Version : How to change user TEMP and TMP environment variables


Michael
January 7th 04, 01:01 PM
This should be easy, but I couldn't find the way how to do it.

I would like to change default users TEMP and TMP environment
variables from
"%USERPROFILE%\Local Settings\Temp" to something like "c:\TEMP" for
all users.

When I create new user in SAM this settings should be automaticaly
applied. I tried to change registry value:
HKEY_USERS\.Default\Environment
but variables stay the same - default even for new created users. Is
there some other registry key.

Thanks for help, Michael

Will Denny
January 7th 04, 01:01 PM
Hi Michael

Right click My Computer, select Properties and then the Advanced tab - =
'Environment Variables'.

--=20

Will Denny
MS-MVP Windows - Shell/User


"Michael" > wrote in message =
om...
> This should be easy, but I couldn't find the way how to do it.
>=20
> I would like to change default users TEMP and TMP environment
> variables from
> "%USERPROFILE%\Local Settings\Temp" to something like "c:\TEMP" for
> all users.
>=20
> When I create new user in SAM this settings should be automaticaly
> applied. I tried to change registry value:
> HKEY_USERS\.Default\Environment
> but variables stay the same - default even for new created users. Is
> there some other registry key.
>=20
> Thanks for help, Michael


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003

Kelly
January 7th 04, 01:01 PM
Hi Michael,

The changes can be made here per user: HKEY_CURRENT_USER\Environment

The difference between HKEY_USERS\.DEFAULT\Environment is that there, the
type is REG_EXPAND_SZ as compared to a string value (REG_SZ) under HKCU.

--
All the Best,
Kelly

MS-MVP Win98/XP
[AE-Windows® XP]

Troubleshooting Windows XP
http://www.kellys-korner-xp.com

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm


"Michael" > wrote in message
om...
> This should be easy, but I couldn't find the way how to do it.
>
> I would like to change default users TEMP and TMP environment
> variables from
> "%USERPROFILE%\Local Settings\Temp" to something like "c:\TEMP" for
> all users.
>
> When I create new user in SAM this settings should be automaticaly
> applied. I tried to change registry value:
> HKEY_USERS\.Default\Environment
> but variables stay the same - default even for new created users. Is
> there some other registry key.
>
> Thanks for help, Michael

Michael
January 7th 04, 01:05 PM
> The changes can be made here per user: HKEY_CURRENT_USER\Environment
>
> The difference between HKEY_USERS\.DEFAULT\Environment is that there, the
> type is REG_EXPAND_SZ as compared to a string value (REG_SZ) under HKCU.
>

HKEY_CURRENT_USER exist when new user is created. I would like to
change default TEMP folder mapping for all new created users on XP
workstation (users all created by zenworks automaticaly). Manualy
modifying this environment variables is not an options.

Michael

Google