Jump to content

Use DISM to change TEMP directories


Recommended Posts

Hi,

I want to change the path of all TEMP directories: the main system one (C:\Windows\Temp) to D:\Temp and the ones in %USERPROFILE%\AppData\Local\Temp to D:\Temp\{username}\

So, if I make new accounts those paths will be used. Can someone provide step by step instructions on doing this? I want to get it right the first time. :P I know Win 7 is still available as RC, but it should be the same command for the final when that is released ... well I hope, but we'll burn that bridge later. :) Now is the time to practice on RC images. :)

Thanks.

Edited by Star Shadow
Link to comment
Share on other sites


You should use system variables for doing that:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"TEMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,54,00,45,00,4d,00,50,00,00,00
"TMP"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
25,00,5c,00,54,00,45,00,4d,00,50,00,00,00

[HKEY_USERS\.DEFAULT\Environment]
"TEMP"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
6f,00,63,00,61,00,6c,00,5c,00,54,00,65,00,6d,00,70,00,00,00
"TMP"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,00,\
45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,6f,\
00,63,00,61,00,6c,00,5c,00,54,00,65,00,6d,00,70,00,00,00

Change them manually on your computer to capture the new values and apply them using a REG file.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...