Jump to content

Registry tweaks apply unpredictably.


Recommended Posts

I'm having trouble adding my registry tweaks to my unattended installation.

It seems that some of my reg tweaks apply while others do not (actually, most of them don't seem to work, a few of them seem to). All of the tweaks are called from the same file (regtweaks.reg) from cmdlines.txt.

Before running the tweaks, cmdlines.txt calls an autologin script:

useraccounts.cmd

net user myuser mypassword /addnet localgroup Administrators myuser /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.reg  

autologon.reg

Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="myuser""DefaultPassword"="mypassword""AutoAdminLogon"="1"

Examples of some registry tweaks that don't seem to work:

;Force Classic Control Panel

;Folder view options

;Disable Search Dog

Examples of some registry tweaks that do seem to work:

;------------------------Visual Effects------------------------

;skips the Internet Connection Wizard the first time you start IE6

regtweaks.reg

[HKEY_CURRENT_USER\Control Panel\Mouse]"ActiveWindowTracking"=dword:00000000"DoubleClickHeight"="4""DoubleClickSpeed"="500""DoubleClickWidth"="4""MouseSensitivity"="10""MouseSpeed"="0""MouseThreshold1"="0""SmoothMouseXCurve"=hex:00,00,00,00,00,00,00,00,00,a0,00,00,00,00,00,00,00,40,\  01,00,00,00,00,00,00,80,02,00,00,00,00,00,00,00,05,00,00,00,00,00"SmoothMouseYCurve"=hex:00,00,00,00,00,00,00,00,66,a6,02,00,00,00,00,00,cd,4c,\  05,00,00,00,00,00,a0,99,0a,00,00,00,00,00,38,33,15,00,00,00,00,00"MouseThreshold2"="0""SnapToDefaultButton"="0""SwapMouseButtons"="0""MouseTrails"="0"
;Folder view options[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"Hidden"=dword:00000001"HideFileExt"=dword:00000000"DontPrettyPath"=dword:00000000"ShowInfoTip"=dword:00000001"HideIcons"=dword:00000000"MapNetDrvBtn"=dword:00000000"WebView"=dword:00000001"Filter"=dword:00000000"SuperHidden"=dword:00000000"SeparateProcess"=dword:00000000"ListviewAlphaSelect"=dword:00000001"ListviewShadow"=dword:00000001"ListviewWatermark"=dword:00000001"TaskbarAnimations"=dword:00000001"StartMenuInit"=dword:00000002"StartButtonBalloonTip"=dword:00000002"TaskbarSizeMove"=dword:00000000"TaskbarGlomming"=dword:00000000"NoNetCrawling"=dword:00000001"FolderContentsInfoTip"=dword:00000001"FriendlyTree"=dword:00000001"WebViewBarricade"=dword:00000001"DisableThumbnailCache"=dword:00000001"ShowSuperHidden"=dword:00000000"ClassicViewState"=dword:00000001"PersistBrowsers"=dword:00000000"StartMenuAdminTools"="YES""StartMenuFavorites"=dword:00000001"StartMenuLogoff"=dword:00000001"StartMenuRun"=dword:00000001"StartMenuChange"=dword:00000001"CascadeControlPanel"="YES""CascadeMyDocuments"="YES""CascadeMyPictures"="NO""CascadeNetworkConnections"="YES""CascadePrinters"="NO""StartMenuScrollPrograms"="NO""IntelliMenus"=dword:00000000"Start_LargeMFUIcons"=dword:00000000"Start_MinMFU"=dword:00000006"Start_ShowControlPanel"=dword:00000001"Start_EnableDragDrop"=dword:00000001"Start_ShowHelp"=dword:00000000"Start_ShowMyComputer"=dword:00000001"Start_ShowMyMusic"=dword:00000000"Start_ShowMyPics"=dword:00000000"Start_ShowPrinters"=dword:00000001"Start_ShowRun"=dword:00000001"Start_ScrollPrograms"=dword:00000000"Start_ShowSearch"=dword:00000001"Start_ShowSetProgramAccessAndDefaults"=dword:00000000"Start_ShowRecentDocs"=dword:00000002"Start_AutoCascade"=dword:00000001"Start_NotifyNewApps"=dword:00000000"Start_AdminToolsRoot"=dword:00000000"Start_ShowNetPlaces_ShouldShow"=dword:00000041"Start_ShowNetConn_ShouldShow"=dword:00000042"Start_ShowNetConn"=dword:00000000"Start_ShowNetPlaces"=dword:00000001
;Disable Search Dog[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState]"Use Search Asst"="no"
;Disables "Browse web for program" to open unknown extension. "Open With..." becomes default.[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]"NoInternetOpenWith"=dword:00000001
;skips the Internet Connection Wizard the first time you start IE6[HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard]"Completed"=hex:01,00,00,00
;Disable The windows Tour during first logon[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Tour]"RunCount"=dword:00000000
;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
;Force Classic Control Panel[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]"ForceClassicControlPanel"=dword:00000001
;Enable Quick Launch[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,\d8,64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,01,00,00,1a,00,00,00,\01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,\00,00,00,c0,00,00,00,00,00,00,46,83,00,00,00,10,00,00,00,a0,b0,48,5e,89,8d,\bd,01,00,d8,9e,e4,2a,8d,bd,01,00,45,fe,5e,89,8d,bd,01,00,00,00,00,00,00,00,\00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,13,01,14,00,1f,0f,e0,4f,\d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,19,00,23,44,3a,5c,00,00,00,00,00,\00,00,00,00,00,00,00,00,00,00,00,00,cd,97,15,00,31,00,00,00,00,00,af,24,5c,\b9,10,80,57,69,6e,6e,74,00,00,20,00,31,00,00,00,00,00,af,24,a3,b9,10,00,50,\72,6f,66,69,6c,65,73,00,50,52,4f,46,49,4c,45,53,00,19,00,31,00,00,00,00,00,\c1,24,08,92,10,00,69,65,35,30,30,2e,30,30,30,00,00,28,00,31,00,00,00,00,00,\c1,24,08,92,10,00,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,00,41,50,\50,4c,49,43,7e,31,00,21,00,31,00,00,00,00,00,c5,22,9d,91,10,00,4d,69,63,72,\6f,73,6f,66,74,00,4d,49,43,52,4f,53,7e,31,00,29,00,31,00,00,00,00,00,d3,22,\32,a6,10,00,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,00,49,4e,54,\45,52,4e,7e,31,00,24,00,31,00,00,00,00,00,db,22,76,ba,10,00,51,75,69,63,6b,\20,4c,61,75,6e,63,68,00,51,55,49,43,4b,4c,7e,31,00,00,00,8d,00,00,00,1c,00,\00,00,01,00,00,00,1c,00,00,00,36,00,00,00,0d,f0,ad,ba,8c,00,00,00,1a,00,00,\00,03,00,00,00,e7,18,2d,23,10,00,00,00,49,45,35,30,30,5f,58,31,43,00,43,3a,\5c,57,49,4e,4e,54,5c,50,72,6f,66,69,6c,65,73,5c,49,45,35,30,30,2e,30,30,30,\5c,41,70,70,6c,69,63,61,74,69,6f,6e,20,44,61,74,61,5c,4d,69,63,72,6f,73,6f,\66,74,5c,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,5c,51,75,69,63,\6b,20,4c,61,75,6e,63,68,00,00,10,00,00,00,05,00,00,a0,1a,00,00,00,a3,00,00,\00,00,00,00,00,08,00,00,00,02,00,00,00,cc,00,00,00,01,00,00,00,03,00,00,00,\4a,00,00,00,01,00,00,00,40,00,32,00,e6,01,00,00,c4,24,15,9f,20,00,4c,61,75,\6e,63,68,20,49,6e,74,65,72,6e,65,74,20,45,78,70,6c,6f,72,65,72,20,42,72,6f,\77,73,65,72,2e,6c,6e,6b,00,4c,41,55,4e,43,48,7e,32,2e,4c,4e,4b,00,00,00,40,\00,00,00,02,00,00,00,36,00,32,00,48,02,00,00,c4,24,15,9f,20,00,4c,61,75,6e,\63,68,20,4f,75,74,6c,6f,6f,6b,20,45,78,70,72,65,73,73,2e,6c,6e,6b,00,4c,41,\55,4e,43,48,7e,31,2e,4c,4e,4b,00,00,00,36,00,00,00,00,00,00,00,2c,00,32,00,\51,00,00,00,ec,22,46,39,20,00,53,68,6f,77,20,44,65,73,6b,74,6f,70,2e,73,63,\66,00,53,48,4f,57,44,45,7e,31,2e,53,43,46,00,00,00,52,00,00,00,e0,00,00,00,\00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,\00,00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,37,02,\00,00,e0,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,00,00,00,00,16,00,00,\00,00,00,00,00,01,00,00,00
;Make Google Default Search[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]""="http://www.google.com/keyword/%s"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Search]"SearchAssistant"="http://www.google.com/ie"
;Max your Internet Explorer's simultaneous downloads to 10 (default was 2)[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]"MaxConnectionsPer1_0Server"=dword:0000000a"MaxConnectionsPerServer"=dword:0000000a
;This adds the "Open Command Window Here" on the right click menu for folders[HKEY_CLASSES_ROOT\Directory\shell\cmd]@="Open Command Window Here"[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]@="cmd.exe /k \"cd %L\""[HKEY_CLASSES_ROOT\Drive\shell\cmd]@="Open Command Window Here"[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]@="cmd.exe /k \"cd %L\""
;Disables Error Reporting, but notifies when errors occur[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]"DoReport"=dword:00000000
;---------------;Services Tweaks;---------------
;Disable Messenger Service (to stop spam. Does not affect MSN or Windows Messenger)[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger]"Start"=dword:00000004
;Disable srservice Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]"Start"=dword:00000004
;Set to manual Distributed Link Tracking Client Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TrkWks]"Start"=dword:00000003
;Disable NetDDEdsdm Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetDDEdsdm]"Start"=dword:00000004
;Disable Network DDE Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetDDE]"Start"=dword:00000004
;Disable ClipBook Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ClipSrv]"Start"=dword:00000004
;Disable Alerter Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Alerter]"Start"=dword:00000004
;Disable Remote Registry Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]"Start"=dword:00000004
;Disable Error Reporting Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ERSvc]"Start"=dword:00000004
;Disable Help and Support Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\helpsvc]"Start"=dword:00000004
;Disable IPSec Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent]"Start"=dword:00000004
;Manual Logical Disk Manager Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmserver]"Start"=dword:00000003
;Disable Portable Media Serial Number Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WmdmPmSp]"Start"=dword:00000004
;Disable Secondary Logon Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\seclogon]"Start"=dword:00000004
;Disable SSDP Discovery Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SSDPSRV]"Start"=dword:00000004
;Disable TCP/IP Helper Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LmHosts]"Start"=dword:00000004
;Disable Upload Manager Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\uploadmgr]"Start"=dword:00000004
;Disable WebClient Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient]"Start"=dword:00000004
;Disable Netmeeting Remote Desktop Sharing Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mnmsrvc]"Start"=dword:00000004
;------------------------Visual Effects------------------------
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]"VisualFXSetting"=dword:00000003
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax]"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation]"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow]"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows]"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow]"DefaultValue"=dword:00000001"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing]"DefaultValue"=dword:00000001"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling]"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewAlphaSelect]"DefaultValue"=dword:00000000"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow]"DefaultValue"=dword:00000000"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewWatermark]"DefaultValue"=dword:00000000"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation]"DefaultValue"=dword:00000000"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade]"DefaultValue"=dword:00000000"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TaskbarAnimations]"DefaultValue"=dword:00000000"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\Themes]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation]"DefaultValue"=dword:00000000"DefaultApplied"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\WebView]"DefaultApplied"=dword:00000000

Any help would be greatly appreciated!

Thanks....

eon

Link to comment
Share on other sites


run them at first logon...

Why would he/she want to do that?

They would then olny apply to the user they are run under and all new users will just get default settings.

I'm sure they are called through commandlines so it gets applied to ALL USERS.

Link to comment
Share on other sites

hmmm hmmm hmm

current user applies to Current User not all

hklm would affect all the users not the current user....

edit: ok then go with the inf method, put the reg tweaks into hive*.inf's and it shall be applied to every user..

its the sure way of doing reg tweaks..

Edited by XtremeMaC
Link to comment
Share on other sites

On this particular machine, there will only be one user and it will be automatically logged in on boot, so HKEY_CURRENT_USER should be fine for now.

For future ref, if I change all CURRENT_USER references to LOCAL_MACHINE would they be applied to all users forever?

Thanks...

eon

Link to comment
Share on other sites

hmmm hmmm hmm

current user applies to Current User not all

hklm would affect all the users not the current user....

But if HK Current User is applied at the 13min mark (cmdlines) then it will change the one and only account at that stage.

When any new users are added they get a copy of this account.

Thus they also get a copy of any modified tweaks.

NOTE: Not to be confused with calling RunOnceEx as that actually applies any tweaks at first logon after the new account is created.

Link to comment
Share on other sites

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...