Re: Set temp path by Policy

From: Yaron Maor (yaronmaor_at_012.net.il)
Date: 08/31/04


Date: Tue, 31 Aug 2004 12:10:22 +0200

Hi KM,

thanks for the info.
apparently my mistake was trying to import keys to the HKLM while logged in
as a limited user.
I run on startup a batch with "reg import settemp.reg".
but some of the reg settings were HKLM and caused the whole file to get
"access denied" error.
I removed those and everything worked perfectly.
lastly- I found that all I need to set is:
[HKEY_USERS\.DEFAULT\Environment]
"TEMP"="z:\\"
"TMP"=hex(2):7a,00,3a,00,5c,00,00,00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders]
"Cache"="Z:\\Temporary Internet Files"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User
Shell Folders]
"Cache"=hex(2):7a,00,3a,00,5c,00,00,00

the HKLM settings I set once in the Admin profile or in TD during FBA.

thanks again!

YaronM

"KM" <konstmor@nospam_yahoo.com> wrote in message
news:%23jaOGJzjEHA.3392@TK2MSFTNGP15.phx.gbl...
> Yaron,
>
> I don't have that system in front of me right now but reviewing your reg.
> file I would aslo add these:
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
> Settings\Cache\Paths]
> "Directory"="Z:\\Temporary Internet Files\\Content.IE5"
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
> Settings\Cache\Paths\path1]
> "CachePath"="Z:\\Temporary Internet Files\\Content.IE5\\Cache1"
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
> Settings\Cache\Paths\path2]
> "CachePath"="Z:\\Temporary Internet Files\\Content.IE5\\Cache2"
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
> Settings\Cache\Paths\path3]
> "CachePath"="Z:\\Temporary Internet Files\\Content.IE5\\Cache3"
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
> Settings\Cache\Paths\path4]
> "CachePath"="Z:\\Temporary Internet Files\\Content.IE5\\Cache4"
>
> (in case you want to move printer spooler temp directory as well)
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers]
> "DefaultSpoolDirectory"="Z:\\Temporary Internet Files"
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
> NT\CurrentVersion\Print\Printers]
> "DefaultSpoolDirectory"="Z:\\Temporary Internet Files"
>
> (in case you don't want users to download files to protected partitions)
> [HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer]
> "Download Directory"="Z:\\"
>
> I also recall that I could set
> [HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
> Settings\Cache\Paths\pathX],"CachePath" is hex only (binary, not string).
>
> I don't remember if I tested much creating a new account that time but I
> did
> create and setup some accounts during FBA.
>
> In any case, if it does not work for you, you can end up having a Runonce
> item for all users (.DEFAULT hive) that will clean up itself in the
> registry
> under HKCU key on the first run.
>
> KM
>
>> Hi KM,
>>
>> I've created all the required reg settings for moving the IE and other
> Temp
>> to Ram-Disk,
>> but when a new user account logs in it is not effected.
>> could you detail me excatly what you setup for moving all type of
>> Temps+IE
>> to Ram-Disk?
>> I attached a reg file for all the settings I've made.
>> I only succeded in changing the System's Temp+Tmp but not the User's
> Temp's.
>> also, the Admin's Temp's are ok because this account in staying
>> unchanged.
>> my intention is to make sure each new user account that is created will
>> be
>> directed to Z:\
>>
>> thanks,
>>
>> YaronM
>>
>>
>> "KM" <konstmor@nospam_yahoo.com> wrote in message
>> news:OMZ78hljEHA.1644@tk2msftngp13.phx.gbl...
>> > Yaron,
>> >
>> > I am wondering why don't you setup all the required reg.settings in
>> > .DEFAULT reg.hive?
>> > This will apply to all users.
>> >
>> > I've done that for moving IE and other temp paths to Ram-Disk drive for
>> > all
>> > users in system.
>> >
>> > KM
>> >
>> >> Hi Slobodan,
>> >>
>> >> I tried your suggestion, but it helps me only in the first boot of the
>> > Admin
>> >> account.
>> >> still, the limited user accounts are directed by the system to the
>> >> default
>> >> c: drive.
>> >>
>> >> is there anyone using a Ram-Disk for temporary storage out-there??
>> >> I'm sure I'm dealing with a problem that has a simple solution for it.
>> >> all I need is to make sure all system's Temp & IE temp files are
>> >> always
>> >> saved on Z: drive.
>> >>
>> >> hope someone could drop some info.
>> >>
>> >> thanks,
>> >>
>> >> YaronM
>> >>
>> >> "Slobodan Brcin (eMVP)" <sbrcin@ptt.yu> wrote in message
>> >> news:%23nMa7o1iEHA.3972@tk2msftngp13.phx.gbl...
>> >> > Hi Yaron,
>> >> >
>> >> > Answers to question 1:
>> >> >
>> >
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&selm=eAPl%232qBEHA.3524%40TK2MSFTNGP10.phx.gbl
>> >> >
>> >> > Best regards,
>> >> > Slobodan
>> >> >
>> >> > "Yaron Maor" <yaronmaor@012.net.il> wrote in message
>> >> > news:eyJL3Z1iEHA.2524@TK2MSFTNGP11.phx.gbl...
>> >> >> Hi,
>> >> >>
>> >> >> I would like to set the temp IE files & environment Temp paths to a
>> >> >> RAM
>> >> >> disk
>> >> >> Z:\
>> >> >> I found the registry locations to do it manually, but now I face
>> >> >> two
>> >> >> problems:
>> >> >>
>> >> >> 1. when componentizing the reg data, how can I make sure it will
>> >> >> run
>> > last
>> >> >> in
>> >> >> FBA so the system will not overwrite it?
>> >> >> 2. how can I make sure it is set as the default path for future new
>> >> >> accounts
>> >> >> that will be created?
>> >> >>
>> >> >> thanks,
>> >> >>
>> >> >> YaronM
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>>
>
>



Relevant Pages

  • Re: Windows Service - Event Log
    ... writing to the registry (HKLM). ... that I am too) are talking about creating an Event Log, ... Administrators group on the local machine, or the local System account. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is it really true that NTFS is secure?
    ... Well I look at both those Run keys; HKLM; HKCU. ... I actually have only two things which are in HKCU Run: ... >> It is the Administrator account that is enabling the user Guest. ... > if the user logging in was a domain admin. ...
    (microsoft.public.security)
  • Re: Using the registry in Vista.
    ... admin privileges. ... Why are you putting things in HKLM? ... When a service starts (before or after login) is irrelevant. ... account the service was created to run in. ...
    (microsoft.public.vc.mfc)
  • Re: Is it really true that NTFS is secure?
    ... > This is why I hate these Anti Virus Programs. ... > HKLM without any value. ... > It is the Administrator account that is enabling the user Guest. ... if the user logging in was a domain admin. ...
    (microsoft.public.security)
  • Re: Set temp path by Policy
    ... I don't have that system in front of me right now but reviewing your reg. ... I don't remember if I tested much creating a new account that time but I did ... > to Ram-Disk, ... > could you detail me excatly what you setup for moving all type of Temps+IE ...
    (microsoft.public.windowsxp.embedded)