Jump to content

Importing Registry Settings To Default User


Recommended Posts

I'm wondering if it is possible to run a registry file during the installation process (eg, in svcpack.inf through a .cmd file).

If so, would entries such as:

;Disables Windows Tour bubble popup

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]

"RunCount"=dword:00000000

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]

"RunCount"=dword:00000000

be ignored because they deal with the current user? Or would they work?

Essentially I don't want to have the registry entries run during the initial run once stage (after user account is created), but rather, during setup.

I had looked into editing the hive files, but that appears to be very complex and time consuming.

Here is my registry file for those interested:

Windows Registry Editor Version 5.00

;Disables network messenger service (avoid that spam!)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger]
"Start"=dword:00000004

;This allows boot files to be placed optimally on the hard-drive for faster boots.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction]
"Enable"="Y"

;Turn Off Simple File Sharing
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"forceguest"=dword:00000000

;Removes Language Bar
[-HKEY_CLASSES_ROOT\CLSID\{540D8A8B-1C3F-4E32-8132-530F6A502090}]
@="Language bar"
"MenuTextPUI"="@%SystemRoot%\\System32\\msutb.dll,-325"

;Disables nVidia help service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NVSvc]
"Start"=dword:00000004

;Disable the Desktop Cleanup Wizard
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]
"NoRun"=dword:00000001

;This adds the "Open Command Prompt Here" on the right-click menu for folders
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="Open Command Prompt Here"
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd.exe /k \"cd %L\""

;Change MenuShowDelay (Start Menu load speed)
[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="300"

;Remove Shared Documents from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]

;Remove Shortcut Arrows
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=-

;Disables Windows Tour bubble popup
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000

;Enables cleartype in logon screen
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"FontSmoothingType"=dword:00000002
"FontSmoothing"="2"

;Enables cleartype in user settings
[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothingType"=dword:00000002
"FontSmoothing"="2"

;Removes nVidia s*** applet from the taskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"NvMediaCenter"=-

;Disable Automatic Updates
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv]
"Start"=dword:00000004

;Disable Remote Registry
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]
"Start"=dword:00000004

;Disable ClipBook
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ClipSrv]
"Start"=dword:00000004

;Disable Wireless Zero Configuration
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WZCSVC]
"Start"=dword:00000004

;Disable Autoupdates
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000001

;Disable Autoupdates
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000001
"AUState"=dword:00000007

;Set search assistant to the good stuff
[HKEY_CURRENT_USER\Software\Microsoft\Search Assistant]
"SocialUI"=dword:00000000
"UsageCount"=dword:00000001
"UseAdvancedSearchAlways"=dword:00000001

;Force Search to Search All Files
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"SearchSystemDirs"=dword:00000001
"SearchHidden"=dword:00000001
"SearchSlowFiles"=dword:00000001

;;Internet Explorer
;Set Homepage to about:blank
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="about:mozilla"

;;Notepad
;Set Font to Courier New
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"lfFaceName"="Tahoma"

;Turn Word Wrap On
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"fWrap"=dword:00000001

;Enable Status bar
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"StatusBar"=dword:00000001

;Set font size 8
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"iPointSize"=dword:00000050

;smooth scrolling in ie (increase readability when scrolling)
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"SmoothScroll"=dword:1

;prevent accidental import into registry
[HKEY_CLASSES_ROOT\regfile\shell]
@="edit"

;mIRC registration
[HKEY_CURRENT_USER\Software\mIRC\License]
@="removed"
[HKEY_CURRENT_USER\Software\mIRC\UserName]
@="removed"

[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info]
"User"="removed"
"Company"="removed"
"Serial6"="removed"

[HKEY_CURRENT_USER\Control Panel\Cursors]
@="3D-White"
"Scheme Source"=dword:00000002
"Arrow"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,54,\
 00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,33,00,64,00,\
 77,00,61,00,72,00,72,00,6f,00,2e,00,63,00,75,00,72,00,00,00
"AppStarting"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,\
 00,54,00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,61,00,\
 70,00,70,00,73,00,74,00,61,00,72,00,33,00,2e,00,61,00,6e,00,69,00,00,00
"Wait"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,54,\
 00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,68,00,6f,00,\
 75,00,72,00,67,00,6c,00,61,00,33,00,2e,00,61,00,6e,00,69,00,00,00
"Crosshair"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,\
 54,00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,63,00,72,\
 00,6f,00,73,00,73,00,2e,00,63,00,75,00,72,00,00,00
"No"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,54,00,\
 25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,33,00,64,00,77,\
 00,6e,00,6f,00,2e,00,63,00,75,00,72,00,00,00
"SizeNS"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,54,\
 00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,33,00,64,00,\
 77,00,6e,00,73,00,2e,00,63,00,75,00,72,00,00,00
"SizeWE"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,54,\
 00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,33,00,64,00,\
 77,00,77,00,65,00,2e,00,63,00,75,00,72,00,00,00
"SizeNWSE"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,\
 54,00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,33,00,64,\
 00,77,00,6e,00,77,00,73,00,65,00,2e,00,63,00,75,00,72,00,00,00
"SizeNESW"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,\
 54,00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,33,00,64,\
 00,77,00,6e,00,65,00,73,00,77,00,2e,00,63,00,75,00,72,00,00,00
"SizeAll"=hex(2):25,00,53,00,59,00,53,00,54,00,45,00,4d,00,52,00,4f,00,4f,00,\
 54,00,25,00,5c,00,43,00,75,00,72,00,73,00,6f,00,72,00,73,00,5c,00,33,00,64,\
 00,77,00,6d,00,6f,00,76,00,65,00,2e,00,63,00,75,00,72,00,00,00

Link to comment
Share on other sites


For a .reg file, it would be more like:

"REGEDIT /S .\REGFILE.REG"

In this example the .reg file is place in $OEM$ directly, and given the name REGFILE.REG. The previous example would result in an "are you sure" prompt. Executeable programs (.EXE, .BAT, .COM, .CMD) can be called as in the previous post. Remember, CMDLINES.TXT is not "called" or "run", it is parsed. This means that commands like "XCOPY" or "DEL" will not work here, without including a call to CMD.EXE (sorry, don't remember the syntax, it is in the link above...) Also, any reg settings to be applied to the default user should be run from the CMDLINES.TXT section, as the default user profile is the "active" profile. It can, of course, be done later, but with much less ease.

Link to comment
Share on other sites

yes to add a little maybe green machine is correct and the nice thing of this way thorugh cmdlines.txt is that anything you do is added to the default user and then becomes avaialble to any user on the system. Another thing is to install all your apps from there and do all your cleanup then the first time you boot into windows you are ready to go wihtout another reboot.

Link to comment
Share on other sites

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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