Computer Performance, Windows Vista Registry


Vista Registry Editor - Examples of .Reg Files

Vista Registry Editor - Examples of .Reg Files

The purpose of this page is to provide examples of .reg files.  In addition, I will show you how to merge these text files with your registry.

How to transfer the .reg settings into the registry

Typical Microsoft, there are at least three ways of transferring information from the .reg file. into your registry.  There are also a couple of tricky ways that I only mention for completeness.

  1. Double-click the .reg file
  2. Right-click the .reg file, select Merge from the drop-down menu
  3. Launch Regedit then select, File (menu) Import
  4. Execute the command: Regedit /s path to xyz.reg
  5. Create a VBScript file employing the .regwrite method

What to do once you have applied the .reg file

Once you have added the new values to the registry, what next?  How do you view the new settings?  You could take the ruthless approach and reboot the machine.  Alternatively, you could run through this progression:

  • Press F5 - It works in some contexts, e.g. desktop settings.
  • Close, then reopen the interface, e.g. Control Panel.
  • Log off / Log on.  Works well for many of the HKCU settings.
  • Reboot, often the only way to see HKLM changes.

 

Next, I have specific examples of .reg files.

AutoAdminLogon

Here are the settings that you must change in order for my Auto.reg example file to work on your system.

"AutoAdminLogon"="1"
"DefaultUserName"="xxx"
"DefaultPassword"="xxxx0xxxx"
"DefaultDomainName"="xxx.xxx".  Definitely needed in a domain situation.

Copy the settings below into a text file.  Make the amendments to suit your machine and username, save the file with .reg extension, for example Auto.reg. If necessary, refer to How to transfer the .reg settings into the registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="Guyt"
"DefaultPassword"="P££sw0rd"
"DefaultDomainName"="cp"

 

Setting AutoAdminLogon requires you to restart the operating system.

For lots more information on AutoAdminLogon see here

.


Autoplay - Disable with NoDriveTypeAutoRun

Media Change Notification (MCN) messages from the CD-ROM driver trigger AutoPlay.  However if, these messages are suppressed then the CD will not automatically start playing.  You can disable Autoplay by configuring the appropriate value of NoDriveTypeAutoRun.  Here is an example .reg file.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:00000091

 

See more on NoDriveTypeAutoRun


Build Number and PaintDesktopVersion

What this .reg file does is add a message displaying the Build Number to the bottom right of you desktop.

Copy the instructions below into a text file, save the file with .reg extension, for example Build.reg. Then refer to How to transfer the .reg settings into the registry.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"PaintDesktopVersion"=dword:00000001

 

 

Note this registry setting is a dword (and not a REG_SZ), consequently, observe the colon and the lack of speech marks around the 000000001.

See more on Vista Build Number


DontDisplayLastUsername

The idea is to prevent one user inadvertently locking out another user account.  Stops the name of the last user displaying in the Logon dialog box.  Here is my example .reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"dontdisplaylastusername"=dword:00000001

 

Copy the instructions below into a text file, save the file with .reg extension, for example NoDisplay.reg.  See more on DontDisplayLastUsername


Hide the Public Folder from the Vista Desktop

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\HideDesktopIcons]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\HideDesktopIcons\NewStartPanel]
"{4336a54d-038b-4685-ab02-99bb52d3fb8b}"=dword:00000001


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\HideDesktopIcons\ClassicStartMenu]
"{4336a54d-038b-4685-ab02-99bb52d3fb8b}"=dword:00000001
 

 

Note: There was no Public folder on my Vista Desktop, thus, to see this registry hack in action I created an additional 'opposite' script.  In this script I set the value of each dword to zero:
"{4336a54d-038b-4685-ab02-99bb52d3fb8b}"=dword:00000000.

What this script below does, is to turn 'hide' off, in plain English, it displayed the Public folder on my Vista desktop.

'Opposite' Script to Display the Public Folder

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\HideDesktopIcons]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\HideDesktopIcons\NewStartPanel]
"{4336a54d-038b-4685-ab02-99bb52d3fb8b}"=dword:00000000


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\HideDesktopIcons\ClassicStartMenu]
"{4336a54d-038b-4685-ab02-99bb52d3fb8b}"=dword:00000000
 

 

See more on Hide Public Folder


Increase Simultaneous Downloads

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
"MaxConnectionsPerServer"=dword:0000000a
"MaxConnectionsPer1_0Server"=dword:0000000a

 


NoControlPanel - Disable the Control Panel

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoControlPanel"=dword:00000001

See more about NoControlPanel here


Rename the Computer Icon

Is the example script below voodoo?  It sure is magic.  The code below will change the desktop icon called 'Computer' to display:  Username at MachineName.  Copy the instructions below into a text file, save the file with .reg extension, for example Computer.reg. Then refer to How to transfer the .reg settings into the registry.

Perhaps it would be better to review this article before you start with the script below

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
"LocalizedString"=hex(2):25,00,75,00,73,00,65,00,72,00,6e,00,61,00,6d,00,65,00,\
25,00,20,00,61,00,74,00,20,00,25,00,63,00,6f,00,6d,00,70,00,75,00,74,00,65,\
00,72,00,6e,00,61,00,6d,00,65,00,25,00,00,00

 

 

Notice that LocalizedString=hex(2):  This is the way to script the data type called 'Expanded String'.  What's encoded in hex is: %username% at %computername%.  If you need to investigate further, then read this article.


Registered Owner Classic Registry Editor Example

Let me take a wild guess.  Your organization is not called "Computer Performance", and, your RegisteredOwner is not "Guy".  My point is that you should make changes before you import my Owner.reg file.

Copy the instructions below into a text file, save the file with .reg extension, for example Owner.reg. Then refer to How to transfer the .reg settings into the registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"RegisteredOrganization"="Computer Performance"
"RegisteredOwner"="Guy"

 

 

Here is the story of Evans Twp and RegisteredOwner


Roaming Profile - Disable

Registry tweak to prevent roaming profiles saving on the local machine.  Example registry .reg file.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"DeleteRoamingCache"=dword:00000001

 

Shortcut - Remove Arrow

Copy the instructions below into a text file, save the file with .reg extension, for example Arrow.reg.  Note: For this .reg example to work, you must get noarrow.ico, unzip and copy to Vista's \windows folder.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Icons]
"29"="%SystemRoot%\\noarrow.ico,0"
 

 

See more details on how to remove arrows on shortcuts


UAC - Disable ConsentPromptBehaviorAdmin

Disable the annoying UAC 'Continue' pop-up box; copy and paste this .reg example into notepad, save with .reg extension.  Double click and merge with your Vista registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"EnableLUA"=dword:00000001

 

 

 


Summary of .reg examples

The technique is the same for all these files.  Copy my example into notepad, save the file with .reg extension, then double click and merge with your registry.  Remember to include the name of the Registry Editor, also keep the second line blank.  In order to see the fruits of your work, try this progression: press f5 (refresh), logoff / logon, finally try restarting your computer.

If you need more information on producing .reg files then check out this page: How to create .reg files.


TrainSignal - Recommended Vista Training VideosTrain Signal has just released their New Windows Vista Training Course.  As an MCT trainer, I am a huge advocate of Train Signal’s products.  What impresses is me is that they demonstrate everything that they teach and they stay away from traditional 'lecture-style' training.  If you are looking for a complete DETAILED coverage of Windows Vista, then I highly recommend that you give this course a try.  I have reviewed their 18 hours of videos myself, and I guarantee that you will not be disappointed!

Watch a Vista Training Video Demo.


Windows Vista Registry Tweaks:

 

   Tweak the Registry ebook

Download your Tweak the Registry Ebook for only $6.45

This ebook will explain the workings of the registry.  I thoroughly enjoy tweaking the registry, and I want to distill the best of my experiences and pass them on to you.

Each registry tweak has two aims; to solve a specific problem, and to provide general learning points, which help you to master regedit. 

Over 60 pages ebook and PDF format

 

 

 

^


Google
WebComputerperformance.co.uk

GFi Events Manager

Guy Recommends: GFi EventsManager

Here is a solution to monitor, manage and archive thousands of events that are generated by devices across your entire network.  Get your free evaluation copy of GFI EventsManager.