royalbox Posted June 17, 2005 Share Posted June 17, 2005 A bit of help wanted please.I had assumed that if you used the HKEY_USERS\.DEFAULT key to add registry tweaks, then they would be applied to any new user created. I tried this and none of the tweaks were applied. I want to add the registry tweaks to an unattented disc using cmdlines.txt but I've only ever been able to get the HKEY_LOCAL_MACHINE tweaks to work.What should I be doing?Many thanks. Link to comment Share on other sites More sharing options...
fly Posted June 17, 2005 Share Posted June 17, 2005 As far as I know, you'll need to set it up using the 'Default User' profile...I don't think you can just add registry entries otherwise... Link to comment Share on other sites More sharing options...
Coolsights2000 Posted June 17, 2005 Share Posted June 17, 2005 (edited) add the reg keys to the HKCU during the T-12stage using the cmdlines.txt BUT BEFORE you create any users then when you create the first user it will inherit the default users settings...here is an example of allot of things..... I call the T-12stage.cmd from the cmdlines.txt and the T-12stage.cmd calls other files... part of my tweak are installed when the hive are set up in the begining and then I reinforce them here from the T-12stage.cmd.. I also do two sets of services to shut down... one here one later after the first reboot........cmdow @ /HID@echo offClsTITLE Installing T-12 Stage Stufffor %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WIN51 set CDROM=%%i:SET KEY="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"REM ************************************************************REM Set CDROM Environment PathREG ADD %KEY% /v "XPCDROM" /t REG_EXPAND_SZ /d %CDROM% /fREM ************************************************************REM Set Installation Environment Path from Hard Driveset XPCDPATH=D:\XPCD\$OEM$\$1\InstallREG ADD %KEY% /v "XPCD" /t REG_EXPAND_SZ /d %XPCDPATH% /fREG ADD %KEY% /v "XPCDHD" /t REG_EXPAND_SZ /d %XPCDPATH%HD /fREM ************************************************************REM Set Installation Environment Path from DVDCD if used unremarkREM set XPCDPATH=%CDROM%\InstallREM REG ADD %KEY% /v "XPCD" /t REG_EXPAND_SZ /d %XPCDPATH% /fREM REG ADD %KEY% /v "XPCDHD" /t REG_EXPAND_SZ /d C:\InstallHD /fREM Clean up file locationsset XPClean=%CDROM%\XPcleanREG ADD %KEY% /v "XPClean" /t REG_EXPAND_SZ /d %XPClean% /fECHO.ECHO Install Hive/Register tweaks This makes the Windows Desktop, IE and explore(File Manager) how I like them ..start /wait rundll32 setupapi,InstallHinfSection DefaultInstall 128 %CDROM%\I386\HIVEMY.INFstart /wait rundll32 setupapi,InstallHinfSection DefaultInstall 128 %CDROM%\I386\HIVEadva.infstart /wait rundll32 setupapi,InstallHinfSection DefaultInstall 128 %CDROM%\I386\HIVEexpl.infstart /wait rundll32 setupapi,InstallHinfSection DefaultInstall 128 %CDROM%\I386\HIVEStre.infstart /wait rundll32 setupapi,InstallHinfSection DefaultInstall 128 %CDROM%\I386\HIVEsite.infECHO.ECHO Merging Regedit Favoritesstart /wait REGEDIT /S %XPCDPATH%\MergeReg\RegeditFavorites.regECHO.ECHO Merging Restricted Sites and Blocked active-Xstart /wait REGEDIT /S %XPCDPATH%\Securityfiles\blocklist.regstart /wait REGEDIT /S %XPCDPATH%\Securityfiles\ie-ads.regstart /wait REGEDIT /S %XPCDPATH%\Securityfiles\adult.regECHO.ECHO Change attrib of files copied from the DVD to not readonlyREM attrib -R "%programfiles%\~Sims2Loader\*.*" /S /DREM attrib -R "%programfiles%\eMule\*.*" /S /DREM attrib -R "%programfiles%\Lavasoft\*.*" /S /DREM attrib -R "%programfiles%\PestPatrol\*.*" /S /DREM attrib -R "%programfiles%\SimEnhancer\*.*" /S /DREM attrib -R "%programfiles%\WinRAR\*.*" /S /DREM attrib -R "%programfiles%\WinZip\*.*" /S /DREM attrib -R "%programfiles%\dupfiles\*.*" /S /DREM attrib -R "%programfiles%\Trillian\*.*" /S /DECHO.ECHO Copyfolders from drive D:\ if not using DVD else remark out use abovestart /wait .\T-12stage.vbsECHO.ECHO Create "Default User" User Account Will be deleted laternet user "Default User" /addnet localgroup Administrators "Default User" /addnet accounts /maxpwage:unlimitedECHO.ECHO Auto-Login SettingsSET KEY="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"REG ADD %KEY% /V DefaultUserName /t REG_SZ /D "Default User" /fREG ADD %KEY% /V DefaultPassword /t REG_SZ /D "" /fREG ADD %KEY% /V AutoAdminLogon /t REG_SZ /D "1" /fREM Disable ASPNET and Administrator User not going to use them anywaySET KEY="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList"REG ADD %KEY% /V ASPNET /t REG_DWORD /D 0X00000000 /fREG ADD %KEY% /V Administrator /t REG_DWORD /D 0X00000000 /fECHO.ECHO ShutDown Services Not NeededStart /wait %XPCDPATH%\Services\SerToshu.cmdREM After First login change to the Hidden "Default user" Then rebootSET KEY="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"REG ADD %KEY%\999 /V 1 /D "REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V SID.cmd /D "%XPCDPATH%\SID\SID.cmd" /f" /fEXIT Edited June 17, 2005 by Coolsights2000 Link to comment Share on other sites More sharing options...
royalbox Posted June 17, 2005 Author Share Posted June 17, 2005 Thanks a lot Coolsights2000.Just to be sure, Can I create an account straight after adding the entries to HKEY_CURRENT_USER without rebooting? Link to comment Share on other sites More sharing options...
royalbox Posted July 20, 2005 Author Share Posted July 20, 2005 (edited) This is really bugging me now. How do I add user specific registry entries during setup? I've tried running a batch file from cmdlines.txt with both HKEY_CURRENT_USER and .DEFAULT entries but none of the settings take.Thanks for any help. Edited July 20, 2005 by royalbox Link to comment Share on other sites More sharing options...
royalbox Posted July 21, 2005 Author Share Posted July 21, 2005 Well I must say I am surprised. I thought this was going to be one of those easy questions, but it seems as though no-one knows the answer. Isn't anybody adding custom registry tweaks to their unattended CDs to, say, change or remove their wallpaper for example? This seems very strange. Link to comment Share on other sites More sharing options...
DigeratiPrime Posted July 21, 2005 Share Posted July 21, 2005 (edited) Its really simple to do. You have an $OEM$ folder inside that are two files: cmdlines.txt and a regtweaks.reg file.cmdlines.txt calls the regtweaks.reg, and any HKEY_CURRENT_USER tweaks in this .reg file will apply to any and all users created after that.cmdlines.txt [COMMANDS]"REGEDIT /S regtweaks.reg""RunOnceEx.cmd" Edited July 21, 2005 by DigeratiPrime Link to comment Share on other sites More sharing options...
royalbox Posted July 22, 2005 Author Share Posted July 22, 2005 (edited) @DigeratiPrimeThat's what I did so I must have done something else wrong as the settings didn't take. Thanks for confirming that this is the right way to do it, I'll try again.EDIT:Ah, I see what I've done. I used reg import instead of regedit /s. Don't ask me why. Thanks again. Edited July 22, 2005 by royalbox Link to comment Share on other sites More sharing options...
royalbox Posted July 23, 2005 Author Share Posted July 23, 2005 (edited) I tried again with regedit /s and still none of the current user tweaks took. I tried creating a new account after installation as well and still no tweaks were applied. The local machine settings were applied.Has anyone any idea what I'm doing wrong?cmdlines.txt:"tweaks.cmd""useraccounts.cmd"tweaks.cmd:for %%i in ("TWEAKS\*.reg") do ( regedit /s "%%i")Many thanks. Edited July 23, 2005 by royalbox Link to comment Share on other sites More sharing options...
jbm Posted July 23, 2005 Share Posted July 23, 2005 I'mnot an expert in batch programing but I think this will do what you want.also I think TWEAKS should be the full path to your TWEAKS dir. oryou could use .\TWEAKS if its a sub of the current dir.for /R TWEAKS %%i IN (*.reg) DO ( regedit /s %%i) Link to comment Share on other sites More sharing options...
royalbox Posted July 23, 2005 Author Share Posted July 23, 2005 @jbmI appreciate your help, but if it were the batch command that was wrong then none of the tweaks would have been applied. As it is, it's just the current user ones.Thanks anyway. Link to comment Share on other sites More sharing options...
jbm Posted July 24, 2005 Share Posted July 24, 2005 (edited) @jbmI appreciate your help, but if it were the batch command that was wrong then none of the tweaks would have been applied. As it is, it's just the current user ones.Thanks anyway.<{POST_SNAPBACK}>I need to learn to read better. Perhaps you should post one of the reg files thats not working.Oh and I like your idea of having reg tweaks divided into diffrent files,my reg tweak file is getting quite long. Edited July 24, 2005 by jbm Link to comment Share on other sites More sharing options...
royalbox Posted July 26, 2005 Author Share Posted July 26, 2005 (edited) @jbm and @allI'm really confused now. I just checked the install again and it seems that some of the current user tweaks 'are' working, while others are not. Example. This didn't work:[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]"MinAnimate"="0"Nor this:[HKEY_CURRENT_USER\Control Panel\Desktop]"DragFullWindows"="0"Whereas others like this did:;---------------------------------------; control panel -- display as a menu;---------------------------------------[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"Start_ShowControlPanel"=dword:00000002Any ideas? Edited July 26, 2005 by royalbox Link to comment Share on other sites More sharing options...
Dahi Posted July 26, 2005 Share Posted July 26, 2005 The first line of your cmdlines.txt file must be [COMMANDS][COMMANDS] "REGEDIT /S HKCU.reg" "REGEDIT /S HKLM.reg" Link to comment Share on other sites More sharing options...
jbm Posted July 26, 2005 Share Posted July 26, 2005 (edited) I could be completely wrong here but my guess is that windows defaults to"let windows choose what's best for my computer" it changes it to what itthinks is best.This reg tweak sets it to customWindows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]"VisualFXSetting"=dword:00000003And it's been my experience that I've had to apply some tweaks more thatonce to get them to work. That's probably because of things like the above. Edited July 26, 2005 by jbm Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now