Jump to content

Registry Tweaks, Part-1

Recommended Posts

OK, there's a few things I'm having problems with. First off, here's the registry tweaks I'm loading:

Windows Registry Editor Version 5.00 


;This will add "Services" to the right-click menu of "My Computer"
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,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,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00

;Disable Autorun

;Disable Remote Registry Service

;Disable Indexing Service

;Disable Messenger Service

;Disable Imapi CD-Burning Service

;Disable Clipbook Service

;Disable Secondary Log-on

;Disable Performance Logs & Alerts

;Disable Task Scheduler

;-------------------------------Internet Explorer--------------------------------

;Adds search keywords to Internet Explorer (in this order: Microsoft Knowledge Base, Altavista, Google, MSN, FileMirrors)
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\MSKB]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\AV]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\GGL]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\MSN]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\FM]

;Makes Google IE's Default Search Engine
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Search Page"="http://www.google.com"
"Search Bar"="http://www.google.com/ie"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchURL]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search]

;Max your Internet Explorer's simultaneous downloads to 10 (default was 2)
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

;Settings are self-explanatory
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Display Inline Videos"="yes"
"Disable Script Debugger"="yes"
"Enable AutoImageResize"="yes"
"Enable Browser Extensions"="yes"
"Error Dlg Displayed On Every Error"="no"
"Expand Alt Text"="no"
"Force Offscreen Composition"=dword:00000000
"Friendly http errors"="no"
"Move System Carat"="no"
"Show image placeholders"=dword:00000001
"Use Search Asst"="no"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]

;Disable links folder in explorer favorites so it never appears again.
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]

;Disable persistent internet caching
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache]

;Passive FTP
"Use Web Based FTP"="yes"
"Use PASV"="yes"

;Check Digital Signatures on Downloaded Programs
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download]

;Not really sure what this does
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Media]

;Some Autocomplete Setting
"Append Completion"="no"


;Speed up browsing remote computers

;Disable QoS

;mount net-drives first, when they are needed

;enlarge DNS-cache

;-----------------------------------Start Menu-----------------------------------

;Removes the recent documents from the start menu.

;----------------------------------Context Menu----------------------------------

;Removes Briefcase, Document, and Rich-Text-Document from New Menu.

;This adds the "Open Command Window Here" on the right-click menu for folders
@="Open Command Window Here"
@="cmd.exe /k \"cd %L\""

;Create Copy To and Move To Context Menu Options
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]


;Disable Automatic Restart in the event of a BSOD

;Allow renaming of Recycle Bin

;Recycle Bin Uses 3% of Available Space Rather than 10%

;Removes Low Disk Space Check

;Prefetcher tweak
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]

;Speed up NTFS

;Opens 16-bit apps in a seperate memory space, this increases stability when dealing with 16-bit apps.


;Adjust Windows for Best Appearance

;Explorer Updates

;Speed-up Access to AVI Media Files

;Disable the Desktop Cleanup Wizard

;Remove Common Tasks From Desktop

;Removes Language Bar
@="Language bar"

;Removes and Disables Shared Documents from My Computer

;Disables Windows Tour bubble popup

;Disable Balloon Tips

;Sorts My Computer Above My Documents

;Cache more Icons
"Max Cached Icons"="8192"

;Use Small Icons in Windows Explorer

;Explorer Tweaks
"Use Search Asst"="no"


;Enable word wrap and status bar in notepad, and give it Tahoma font

;Fixes slowdown problem starting Outlook Express when you delete Windows Messenger and disables the splash screen

;-------------------------------Startup & Shutdown-------------------------------

;Speed Up Shutdown
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]

;This allows boot files to be placed optimally on the hard-drive for faster boots.

;Disable Welcome Screen and uses Classic Logon
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

;Force User To Hit Ctrl+Alt+Del to Login

For some reason, XP uses the proper start menu settings on the first bootup, but on subsequent boots, it goes back to the classic start menu. If I set it back to the XP style start menu again, it's fine from there on.

Second, the ShowSuperHidden key doesn't seem to take, as I still have to manually tell it to not hide protected operating system files.

Third, does anyone know how to have the status bar always show in Windows Explorer? I tried doing a before/after shot of the registry and found a modified key, but applying it on a fresh format didn't work.

Fourth, doesn't anybody know how to save the IE toolbar setup? Once again, I thought I had the registry key for it, but again applying it on a fresh format didn't work.

Any help you guys could provide would be greatly appreciated. Thanks :)

Link to comment
Share on other sites

1) Is the first login, which is OK, an "autologon" continuation of the setup, which logs on as administrator? Are the other logons also as administrator? I have it set to classic, and I never see the new style. You must be setting something somewhere, as the new style is the default. (Your code is a little too long to look through ...) You logon, it is as it should be, you make a change, and it shows in subsequent boot. Behaviour by design.

2) I set superhidden just as you, and it is OK as well. When you look in the registry, it is 0, not the 1 you set?

3) I have managed to open directories by default in the split-pane, details view with the status bar by default as such:


Obviously, I have no clue which each of those bits is doing ... but it works. You should probably export that reg key on one of your own machines, not copy mine.

4) If you find an answer, I'm a taker! I thought you were talking about the quick launch bar - nevermind ...

I am not sure the status bar thing will work for you. The trick is to make this change BEFORE you log on. I do this by applying the reg file during before the first reboot, while the system seems to be (much to my surprise ...) using the .default user and not the current user. These tweaks are thus applied to all users, which is fundemental to me, as most of the boxes I install are multi user systems.

P.S. The above only does details view and status bar. The Split pane by default is:

;Open folders in Explorer view.

Link to comment
Share on other sites

I'm not at my testing computer at this very moment, but I'll give that registry info a try tonight. Thanks :)

The start menu style appears correctly on the very first login after it does the batch operation (in other words, I select the user from the welcome screen, it does the batch operation, loads the shell, and all is well). It's on the next reboot that it reverts to a classic start menu.

Link to comment
Share on other sites

I just had to make this.. I hope none of you mind..:)

I'll create the reg files and inf files for fast downloads too.. But that has to be later on..

Have a look and tell me if you want your tweaks out of there.

Screemers Tweaking site

You guys has made a tremendous work on your tweaks..

Some of these are really hard to find..

Link to comment
Share on other sites

I'm still trying to figure out how to put the status bar in explorer by default (not internet explorer). I have tried putting what the previous person suggested with the streams default registry key and it doesnt help. I tried it as a reg file for cmdlines.txt so that it will be installed before logging in. tried it after logging in. It doesnt work. Anyone else have some suggestions?

Link to comment
Share on other sites

I just had to make this.. I hope none of you mind..:)

I'll create the reg files and inf files for fast downloads too.. But that has to be later on..

Have a look and tell me if you want your tweaks out of there.

Screemers Tweaking site

You guys has made a tremendous work on your tweaks..

Some of these are really hard to find..

naw thats fine enjoy. Nice to see the inf files made the cut.

Link to comment
Share on other sites


THe following is an indepth explanation that also replies to your question. The short answer is make changes to HKCU from setup BEFORE the GUI reboot, via cmdlines.txt.


Here are the details of what I was trying to tell you earlier.

I manage to make many changes to the HKCU, and they all stick for all users. The HKCU key .default is not for default users, but for the system when it is not logged on as a user - i.e. during boot or shutdown. It seems to me that changes I make during setup are in fact applied to the ntuser.dat file in %PROFILESDIR%\Default User, which is then copied to each new user. I make these regedits in a call from a file called commands.com, which itself is called from cmdlines.txt after most of setup has completed, and before cleanup, etc, starts. This corrosponds to the "13 Minutes Remaining" point of the installation. Every tweak, update, file copy, file removal I do from this file in this order:

1) Run MS updates that could not be "HotFix Streamlined" (Thanks WebMedic), such as dotnet, JavaVM, Media Player, IE 6.1, and any hot fixes to these items.

2) Call three reg files, for the three different HotKeys I touch in the registry.

3) Delete all files that I deem sub-par or superfluous ... (Such as all the start menus)

4) Copy files that suit my fancy, (Such as a cleaner start menu)

5) Delete the User Accounts that I do not need (aspnet and helpdesk)

6) Add the User Accounts that I will use, add them to the correct users group, and disactivate the accounts I do not want to use.

All that done, and so is my part of the instalation. Setup continues, and when it reboots I am taken to the mini-setup page where I have the option of registering before logging on the first time. I hit Next, Next, Select "No, Not at this time" and am taken to the Welcome Screen where the User I created (called User...) is the only name on the list. Here either I hit Ctrl-Alt-Del two times, and log in as my newly created Administrator (called SysAdmin...), or a User logs on: the machine is ready to go - and I have (most) everything as I like it. (Still can't get the Quick Launch Bar)

There are a couple of things I do different than many of you, which I suspect play a role here:

1) I do not use GuiRunOnce - everything is done before the reboot into the GUI, while the system is using the default user profile (and not the HKCU\.default key)

2) I clean up the stubpath reg entries, as I mentioned in the thread "Deleting protected folders".

3) I set up windows only during the setup. I do not try to add any other programs at this point. Clean setup, period. (How I automate the program installation is a whole 'nother topic.)

4) I use the WebMedc HotFix StreamLine Method (WHSM?), and have incorporated the hotfixes before my batch file is called.

By running my setup files before the GUI reboot, I am convinced (though most pleasantly surprised) that the changes are made to the HKCU of the Default User.

The stubpaths are calls to initialization routines, and I strongly suspect that one of these routines (Probably IE, as the Explorer.exe is in fact a "part" of IE) is resetting some of your changes. Some of the side effects of clearing the stubpaths include:

- The directory %PROFILESDIR%\USERNAME\Application Data\Microsoft\Internet Explorer\Quick Launch never gets created. If you try to display the Quick Launch Bar an error is generated. I overcome this by copying the Quick Launch directory into the default user profile.

- The Outlook Express, IE, WMP icons that were previously created all over the place no longer appear (That's how I got into this in the frst place). I doubt that any of the OE defaults have been set.

By only installing Windows I considerably reduce debug time. I must have lost too many brain cells to be able to handle all those variables at once...

So ... The status bar as, well as details view, are settings that are in the "stream" registry key. This is certain. The trick is getting them there before you log on AND not letting any other program change them between the moment you logon and the moment the desktop etc are built the first time.

If all this seems like to much trouble, use the all at once method: Create a system, log on, make all the changes you like, log off, logon as another user, save the ntuser.dat file from the first user, and then create a distribution where this ntuser.dat is copied to %PROFILESDIR%\Default User. I have not tried this method, but I have read up on it, and there are others that have done it. Some things to keep in mind here:

1) When logged on as the user whose ntuser.dat file you will copy, try to only do any manipulations that are directly concerned with the settings you wish to modify - no need to open all directories, surf the 'net, add docments to your MRU lists.

2) Remember you can only copy the ntuser.dat of another user - you cannot copy your own as it is in use.

3) Copy the ntuser.dat to %PROFILESDIR%\Default User AFTER the system has rebooted into the GUI, as at this point the Administrator is the current user, and not the Default User.

If you do try this method, I am interested in the results.

Congratulations to those of you that read everything up to here!

Link to comment
Share on other sites

same here after my setup is done mostr everything applies to all users I had previously moved all my actual app setups to gui runonce but at cleanup time at the very end of my install I have a bat file that deletes files I want gone and then have it copy startup items and quick launch items over to default user. this gives me a default user with exactly the same stuff as my main user. The reason I moved the apps to guirunonce is that some of them dont install cleanly when you do the install using the cmdlinex.txt.

Other than that i was using that also at first.

Link to comment
Share on other sites

To GreenMachine and Wemedic,

Can you both provide us an example of your scripts to do this tweaks before the GUIRunOnce? I'm very interested because I have be searching and trying to create a default user tweaks that I can apply to any user. Currently I have to use the Windows Files and Setting Transfer Wizard and a registry file to do it. But only able to automate 80% of it.

Reading from what you wrote, this is the solution that I have being looking for. Would really appreciate if you a mini step guide with an example, that would be very helpful. I will test it and post my result for others. Also, I will write a more thorough tweak guide for this for others if you can help me master this. :rolleyes::)

I'm already writing an improved unattended guide that I will send to AaronXP while I'm learning the unattended installation. Now, I'm very interested in auotmating the tweaks and writing a guide for everyone.


Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

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