Bastian_W Posted January 21, 2008 Posted January 21, 2008 (edited) Hello together,is it possible to define a tempfolder for all users (like c:\temp)?The reason is, that I wish to have a C:\Temp folder for all users and not x Tempfolders in the profile from the users.I´m sure there was a reg. entry. But I´m unable to find the posting...Edit (found my old posting):http://www.msfn.org/board/Move-Tempfolder-...ded-t42854.html Edited January 21, 2008 by Bastian_W
RubySoftware Posted January 22, 2008 Posted January 22, 2008 Make a batch file which sets the %TEMP% and %TMP% environment variables, and add it to HKLM\Software\Microsoft\Windows\CurrentVersion\Run.
Yzöwl Posted January 22, 2008 Posted January 22, 2008 Here is a method you can use as part of your unattended procedure; It uses reg.exe from an NT command script to set the locations for all the PC Users to the same location as the default System Temp.@Echo off&SetlocalSet "LK_=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"(Set VD_=/t REG_EXPAND_SZ /d "%%%%SystemRoot%%%%\Temp" /f^>Nul)For %%? In (T TE) Do Reg add "%LK_%" /v %%?MP %VD_%Pushd %UserProfile%\..\Default UserReg load HKU\TempHiv NTUSER.DAT>Nul 2>&1||Goto :EofFor %%? In (T TE) Do Reg add HKU\TempHiv\Environment /v %%?MP %VD_%:Un_Reg unload HKU\TempHiv>Nul 2>&1||Goto Un_Just change SystemRoot for SystemDrive if you prefer the location to be in the root of the drive instead!
Bastian_W Posted April 18, 2008 Author Posted April 18, 2008 Hello YzöwlHello RubySoftwaresorry for the delay... I didn´t get a notification about this topic :-(.Wouldn´t it possible to put a settemp.cmd into:C:\Documents and Settings\All Users\Start Menu\Programs\Startupwhich set and overwrite the temp variables in the reg.?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now