Re: Registry Keys to set Explorer settings

From: GiJO (newsgroups_at_THEOBVIOUSmutestyle.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 06:56:00 GMT

that's ok... i'll just use "%systemdrive%\documents and settings\default
user"

so all the reg tweaks which are for the HKEY_CURRENT_USER i should put in
the file to be imported into the default user's ntuser.dat, and all the
HKEY_LOCAL_MACHINE can stay the same?

this is what i have, a file called hkutwks.reg which currently hold all the
HKEY_CURRENT_USER keys. I'll go through that and replace that with
HKEY_USERS\NTUSER. I have another file called hklmtwks.reg which has all the
current HKEY_LOCAL_MACHINE keys in it which i will leave as they are.

I've got a batch file which has this in it.
reg load hku\ntuser "%systemdrive%\documents and settings\default
user\ntuser.dat"
reg import %systemdrive%\install\hkutwks.reg
reg unload hku\ntuser
REGEDIT /S %systemdrive%\install\hklmtwks.reg

This will load the default user's ntuser.dat, import the HKEY_USERS tweaks
into it, unload the default user's ntuser.dat and then load the
HKEY_LOCAL_MACHINE tweaks into the normal registry.

Thanks for your help... now to test it all properly!

-- 
Thanks
Andrew
David Candy wrote:
> There is no variable available from the command line for D&S or
> D&S\Default User.
>
> "GiJO" <newsgroups@THEOBVIOUSmutestyle.com> wrote in message
> news:hIELc.10710$K53.656@news-server.bigpond.net.au...
>> ok cool... but in the case of setting it to the default user's hive,
>> how do you do that automatically? is there such a thing as a
>> %DefaultUserProfile% that will allow me to reference the Default
>> User Profile in a batch file like you can with %AllUsersProfile% so
>> i can use the REG command like this?
>>
>> REG LOAD %DefaultUserProfile%\NTUser.dat
>> REG ADD whatever key
>> REG ADD another key
>>
>> Or can i have it load the NTUser.dat file and then import a registry
>> file that i have already to merge like this?
>> REG LOAD %DefaultUserProfile%\NTUser.dat
>> REG IMPORT %systemdrive%\regtweaks.reg
>>
>> --
>> Thanks again
>> Andrew
>>
>>
>>
>> David Candy wrote:
>>> .default is the settings for when noone is logged in. You have to
>>> load the user's hive to make changes to another user (in this case
>>> Default User who is NOT .default). Doc & Settings\Default
>>> User\NTUSER.dat (see load hive in Regedit's help).
>>>
>>> Saved folder settings are stored in BagMRU. Defaults and
>>> network/removable drives are stored in Streams key (as everything
>>> was in earlier versions)
>>>
>>
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams
>>> setting=
>>> is the global default
>>>
>>
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams
>> \Defaults
>>> LongNumber=
>>> Is the default for that object type.
>>>
>>> {F3364BA0-65B9-11CE-A9BA-00AA004AE837} is ordinary folders, and
>>> other numbers are what ever they are (My Comp, Control Panel, etc -
>>> note My Docs is an ordinary folder)
>>>
>>> The global and type defaults only exist if you do an apply to all.
>>> If you do an apply to all in My Comp then a default for My Comp
>>> objects (and the global default) is written.
>>>
>>> "GiJO" <newsgroups@THEOBVIOUSmutestyle.com> wrote in message
>>> news:s_vLc.10266$K53.1433@news-server.bigpond.net.au...
>>>> I'm trying to setup a registry file that i can put a whole lot of
>>>> tweaks in and run it to set a whole lot settings automatically and
>>>> also apply those settings to any future user accounts that are
>>>> created.
>>>>
>>>> I created them all in the HKEY_USERS\.DEFAULT hive, but they aren't
>>>> applying the the user that's logged in.
>>>>
>>>> Another thing is when i apply them to the HKEY_CURRENT_USER hive
>>>> most of them apply. The only things i can't get to happen are
>>>> displaying the Status Bar in Windows Explorer (IE and Notepad
>>>> work), and i also want to set the view to Details in windows
>>>> explorer for everyone but it's not happening.
>>>>
>>>> Any idea's what i'm doing wrong? I thought for the folder views i
>>>> had to import the Software\Microsoft\Windows\ShellNoRoam\BagMRU and
>>>> the Software\Microsoft\Windows\ShellNoRoam\Bags key from a computer
>>>> that has the views i want (deleted all the stuff in those keys then
>>>> reset the folder views to the way i want then exported those keys).
>>>> Doesn't work though.
>>>>
>>>> For the Status Bar i have this "Show_StatusBar"="yes" and
>>>> "Show_ToolBar"="yes" set under the \Software\Microsoft\Internet
>>>> Explorer\Main but that's Internet Explorer... are these settings
>>>> available for just Explorer or should this filter across to windows
>>>> explorer? It doesn't...
>>>>
>>>> Any help would be appreciated.
>>>>
>>>> --
>>>> Thanks
>>>> Andrew


Relevant Pages

  • Re: Registry Keys to set Explorer settings
    ... > like you can with %AllUsersProfile% so i can use the REG command like this? ... > Or can i have it load the NTUser.dat file and then import a registry file ... >> .default is the settings for when noone is logged in. ... >>> displaying the Status Bar in Windows Explorer, ...
    (microsoft.public.windowsxp.customize)
  • RE: Distributing an Exe file which works locally but fails via SMS
    ... accesing Local Machine keys and most users will not have access to them, ... "David Harris" wrote: ... reg add ... Use this variable to add the first registry value above e.g. ...
    (microsoft.public.sms.swdist)
  • Re: Constant Logon/Logoff 538 540
    ... Thanks for the reply Roger, I will have to see if I can ... Keys you speak of on the Homes. ... >you can manage these reg keys in the HKeyLocalMachine ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Is there a way to save components registry settings from Target Designer or MSDE?
    ... want to capture the reg keys). ... files from the database. ... Is there away to get at least registry keys saved somehow for specific ...
    (microsoft.public.windowsxp.embedded)
  • Re: Cannot import C: .reg
    ... Hives and is restricted to the HKEY_USERS and HKEY_LOCAL_MACHINE keys. ... Import replaces the current Registry with a backup. ... I made a back-up file of the Reg almost a month ago & thought I was good ... I have gone through the reg looking for any open keys & have found none at ...
    (microsoft.public.windowsxp.help_and_support)