Strider Posted February 17, 2011 Share Posted February 17, 2011 What I am trying to do:1) Have Quick Launch enabled by default2) Have the same quick launch icons (by default) for everyoneWhat I've done:1) Created a $OEM$ folder in "E:\DeploymentShare\Operating Systems\Windows XP Professional SP3 (VL) 2" so it's on the same level as I3862) Within this folder created CMDLINES.txt which simply contains "settings.bat" (including the speach marks)3) I know for a fact settings.bat hasn't run as there are several registry tweaks in there that work fine when ran manually, so before checking if my tweaks are correct I'd like to get my batch file to actually run when it shouldHere is settings.bat::: ---------------------------------------------------------------:: settings.bat [WDS Deployment; set Windows environment]:: ...............................................................:: ...............................................................:: ---------------------------------------------------------------@echo off:::: --------------------------:: Amend Registry Variables:: --------------------------echo.echo Amending Registryreg import machine_profile.regreg import user_profile.regreg import default_profile.regecho.echo Rgistry settings applied:::: -------------------------------:: Change Def Background:: -------------------------------ren "C:\WINDOWS\Web\Wallpaper\bliss.bmp" "bliss_old.bmp"copy /y "bliss.bmp" "C:\WINDOWS\Web\Wallpaper":: --------------------------------------------------------:: copy shortcuts to desktop --> "%ALLUSERSPROFILE%\Desktop\":: --------------------------------------------------------:: --------------------------------------------------------------------------------------------------------------:: copy shortcuts to quick launch --> "%ALLUSERSPROFILE%\Application Data::\Microsoft\Internet Explorer\Quick Launch":: --------------------------------------------------------------------------------------------------------------:::: ---------------------------:: copy OFFICE 2003/2007/2010 shortcuts to current user profile:: ----------------------------::copy "Microsoft Office Excel 2003.lnk" "%USERPROFILE%\Desktop\"::copy "Microsoft Office Excel 2007.lnk" "%USERPROFILE%\Desktop\"copy "Microsoft PowerPoint 2010.lnk" "%USERPROFILE%\Desktop\"copy "Microsoft Word 2010.lnk" "%USERPROFILE%\Desktop\"copy "Microsoft Excel 2010.lnk" "%USERPROFILE%\Desktop\"copy "Microsoft Outlook 2010.lnk" "%USERPROFILE%\Desktop\"copy "Microsoft PowerPoint 2010.lnk" "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch"copy "Microsoft Word 2010.lnk" "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch"copy "Microsoft Excel 2010.lnk" "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch"copy "Microsoft Outlook 2010.lnk" "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch"::----------------------------:: Copy to default profile::----------------------------::copy "Microsoft PowerPoint 2010.lnk" "C:\Documents and Settings\Default User\Desktop"::copy "Microsoft Word 2010.lnk" "C:\Documents and Settings\Default User\Desktop"::copy "Microsoft Excel 2010.lnk" "C:\Documents and Settings\Default User\Desktop"::copy "Microsoft Outlook 2010.lnk" "C:\Documents and Settings\Default User\Desktop"::copy "Microsoft Excel 2010.lnk" "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch"::copy "Microsoft PowerPoint 2010.lnk" "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick ::Launch"::copy "Microsoft Word 2010.lnk" "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch":::::: ------------------------------:: copy SAP & Explorer shortcuts:: ------------------------------copy "SAP Logon.lnk" "%USERPROFILE%\Desktop\"copy "Windows Explorer.lnk" "%USERPROFILE%\Desktop\"::copy "SAP Logon.lnk" "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch"::copy "Windows Explorer.lnk" "C:\Documents and Settings\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch":::::: -------------------------:: copy Wallpaper:: -------------------------copy "CORPUK_Desktop.bmp" "%WINDIR%\Web\Wallpaper\":::::: -------------------------:: copy Sysprep.inf (to fix new computer name after running sysprep):: -------------------------copy /Y "Sysprep.inf" "c:\Sysprep\":::::: -------------------------:: some shortcut cleaning up:: -------------------------del "%USERPROFILE%\Desktop\Adobe Reader 9.lnk"del "%USERPROFILE%\Desktop\PDFCreator.lnk"del "%USERPROFILE%\Desktop\QuickTime Player.lnk"::pauseexitThanks! Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted February 17, 2011 Share Posted February 17, 2011 These two links contain the reg tweak on how to enable the Quick Launch toolbar.If in doubt, search for Kelsenellenelvian's Quicklaunch Enabler add-on for nLite, which contains an .inf file that has always worked for me. It will give you a few ideas.Cheers Link to comment Share on other sites More sharing options...
Strider Posted February 17, 2011 Author Share Posted February 17, 2011 The key is getting CMDLines to work - can you tell me why mine didn't run properly? Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2011 Share Posted February 17, 2011 Within this folder created CMDLINES.txt which simply contains "settings.bat" (including the speach marks)Are you also adding [Commands] to the first line?Are you using a winnt.sif with[unattended]OemPreinstall = Yesas mentioned here?What are the paths to the .reg and .lnk files? Link to comment Share on other sites More sharing options...
jinjou Posted February 17, 2011 Share Posted February 17, 2011 (edited) The key is getting CMDLines to work - can you tell me why mine didn't run properly?You don't say where settings.bat is located, and that appears to be what this question's answer would depend on.You should either include the fully qualified path to settings.bat in CMDLINES.txt, wherever you choose to locate settings.bat, or put settings.bat in the same location as CMDLINES.txt.I've only tested this with W2K using the full path alternative in CMDLINES.txt, and then placed settings.bat some place on the %SystemDrive% using the $OEM$ folder arrangement mechanism.I should think this will work with XP as well.BTW, I'd be suprised to learn that environmental variables work, they haven't for me, so I'd recommend explicit, literal paths. Edited February 17, 2011 by jinjou Link to comment Share on other sites More sharing options...
Strider Posted February 18, 2011 Author Share Posted February 18, 2011 Ok well some good news and some bad (mostly good )Finally my CMDLines is definately running (I put a Pause in there to check), yes I had forgotten to put [COMMANDS] in there The other good news is that I've found a way of getting the correct shortcuts in there (using $Docs in the $OEM$ folder).However QuickLaunch itself still isn't showing by default CMDLines:[COMMANDS]"Settings_CMDLines.bat"CMDLines.bat:reg import QuickL.regpauseQuickL.reg:Windows Registry Editor Version 5.00; -------------------------------------------------; Show Quick Launch (Changed 18/02/2011 - Chris); -------------------------------------------------;enable quick-launch bar near start-menu[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]"Default Taskbar"=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"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,00I copied the reg tweak from the topic linked to above. For what it's worth it says the reg tweak "completed succesfully".FYI I am running Server 2008 R2 and installing XP SP3 unattended Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2011 Share Posted February 18, 2011 Do this... Set the Quick Launch on one of the systems you are setting up the way you want it (position, etc).Log off and then back on again. Export [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]"TaskbarWinXP"=You don't need "Default Taskbar"=Use that reg file in your unattended.Let us know how it goes. Link to comment Share on other sites More sharing options...
Strider Posted February 21, 2011 Author Share Posted February 21, 2011 What does Default Taskbar do? Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2011 Share Posted February 21, 2011 Don't know. It might not do anything. Link to comment Share on other sites More sharing options...
Strider Posted February 23, 2011 Author Share Posted February 23, 2011 Yep that works, thanks!I did some experimenting and found that "default taskbar" does something very strange with the control panel (icons are all over the place) 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