Travelcard Posted August 6, 2003 Posted August 6, 2003 Hi there, I've got my cd working pretty well except for a couple of this. One of my problems is that Autologon doesn't seem to work. I always get asked for the administrator's passsword. Here is the first bit of my winnt.sif, any ideas?;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemSkipWelcome=1 OemPreinstall=Yes TargetPath=\WINDOWS Repartition=Yes WaitForReboot="No" FileSystem=ConvertNTFS DriversigningPolicy=Ignore UnattendSwitch="yes" OemPnPDriversPath="\Drivers\IntelINF"[GuiUnattended] AdminPassword=e7b843cad153cb7aaad3b435b51404ee112909cde543d92f65a864de072d57a0 EncryptedAdminPassword=Yes AutoLogon=Yes AutoLogonCount=5 OEMSkipRegional=1 TimeZone=85 OemSkipWelcome=1
muiz Posted August 6, 2003 Posted August 6, 2003 mine does not maybe this would help ;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS Repartition=No UnattendSwitch=no WaitForReboot="No" DriverSigningPolicy=Ignore OemPnPDriversPath="drivers\nVIDIA\Display;drivers\nVIDIA\AudioDrv;drivers\nVIDIA\AudioUtl;drivers\nVIDIA\Ethernet;drivers\nVIDIA\GART;drivers\nVIDIA\IDE;drivers\nVIDIA\MemCtl;drivers\nVIDIA\SMBus;drivers\nVIDIA\USB"\drivers\hercules\audio"[GuiUnattended] AdminPassword="xxxxx" EncryptedAdminPassword=NO AutoLogon=Yes OEMSkipRegional=1 TimeZone=110 OemSkipWelcome=1[UserData] ProductKey=xxxx-xxxx-xxxx-xxxx-xxxx FullName="xxxx" OrgName="xxxxxx" ComputerName=xxxxx[Display] BitsPerPel=32 Xresolution=1024 YResolution=768 Vrefresh=85[Identification] JoinDomain=MSHOME[Networking] InstallDefaultComponents=Yes[Branding]BrandIEUsingUnattended=Yes[URL]Home_Page=http://www.startpagina.nlSearch_Page=http://www.startpagina.nl[Components] msmsgs=off msnexplr=off freecell=off hearts=off minesweeper=off pinball=off solitaire=off spider=off zonegames=off autoupdate=off fax=off WMAAccess=off[Shell] DefaultStartPanelOff = Yes[GuiRunOnce] %systemdrive%\install\WinXPpro.cmdbatch file CLS@echo offECHO Windows XP full hotfixed.EChO.ECHO Applying Registry Tweak....REGEDIT /S %systemdrive%\install\RegTweaks.regECHO.ECHO Removing Wallpapers...DEL "%systemroot%\Blauw 16.bmp"DEL "%systemroot%\Kopje koffie.bmp"DEL "%systemroot%\Patroon.bmp"DEL "%systemroot%\Prairie.bmp"DEL "%systemroot%\Groensteen.bmp"DEL "%systemroot%\Rhododendron.bmp"DEL "%systemroot%\Rivier Sumida.bmp"DEL "%systemroot%\Stekkie.bmp"DEL "%systemroot%\Santa Fe Stucco.bmp"DEL "%systemroot%\Zeepbellen.bmp"DEL "%systemroot%\Zapotec.bmp"DEL "%systemroot%\Web\Wallpaper\Beklimming.jpg"DEL "%systemroot%\Web\Wallpaper\Herfst.jpg"DEL "%systemroot%\Web\Wallpaper\Kracht.jpg"DEL "%systemroot%\Web\Wallpaper\Kristal.jpg"DEL "%systemroot%\Web\Wallpaper\Maankrater.jpg"DEL "%systemroot%\Web\Wallpaper\Margriet.jpg"DEL "%systemroot%\Web\Wallpaper\Paarse bloem.jpg"DEL "%systemroot%\Web\Wallpaper\Ierland.bmp"DEL "%systemroot%\Web\Wallpaper\Rimpel.jpg"DEL "%systemroot%\Web\Wallpaper\Stonehenge.jpg"DEL "%systemroot%\Web\Wallpaper\Thuis.jpg"DEL "%systemroot%\Web\Wallpaper\Tijdmachine.jpg"DEL "%systemroot%\Web\Wallpaper\Tulpen.jpg"DEL "%systemroot%\Web\Wallpaper\Vakantie.jpg"DEL "%systemroot%\Web\Wallpaper\Volgen.jpg"DEL "%systemroot%\Web\Wallpaper\Woestijn.jpg"DEL "%systemroot%\Web\Wallpaper\Vrede.jpg"DEL "%systemroot%\Web\Wallpaper\Wind.jpg"DEL "%systemroot%\Web\Wallpaper\Vriend.jpg"ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Windows-catalogus.lnk"ECHO.ECHO Installing hu1002_pro.exestart /wait %systemdrive%\install\Hotfixes\hu1002_pro.exe /Q:A /R:NECHO.ECHO Installing js56nnl.exestart /wait %systemdrive%\install\Hotfixes\js56nnl.exe /Q:A /R:NECHO.ECHO Installing Windows Media Player 9ECHO Please wait...start /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:NECHO.ECHO Installing msjavwu.exestart /wait %systemdrive%\install\Hotfixes\msjavwu.exe /Q:A /R:NECHO.ECHO Installing q330994.exestart /wait %systemdrive%\install\Hotfixes\q330994.exe /Q:A /R:NECHO.ECHO Installing q813951.exestart /wait %systemdrive%\install\Hotfixes\q813951.exe /Q:A /R:NECHO.ECHO Installing q818529.exestart /wait %systemdrive%\install\Hotfixes\q818529.exe /Q:A /R:NECHO.ECHO Installing q820223.exestart /wait %systemdrive%\install\Hotfixes\q820223.exe /Q:A /R:NECHO.ECHO Installing vbs56nnl.exestart /wait %systemdrive%\install\Hotfixes\vbs56nnl.exe /Q:A /R:NECHO.ECHO Installing WindowsMedia8-KB817787-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsMedia8-KB817787-x86-NLD.exe /Q:A /R:NECHO.ECHO Installing Q318138_x86.exestart /wait %systemdrive%\install\Hotfixes\Q318138_x86.exe /Q /M /ZECHO.ECHO Installing Q322011_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q322011_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q322069.exestart /wait %systemdrive%\install\Hotfixes\Q322069.exe /Q /M /ZECHO.ECHO Installing Q323255_X86_NL.exestart /wait %systemdrive%\install\Hotfixes\Q323255_X86_NL.exe /Q /M /ZECHO.ECHO Installing Q327979_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q327979_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q328310_WXP_SP2_nl.exestart /wait %systemdrive%\install\Hotfixes\Q328310_WXP_SP2_nl.exe /Q /M /ZECHO.ECHO Installing Q329048_xp.exestart /wait %systemdrive%\install\Hotfixes\Q329048_xp.exe /Q /M /ZECHO.ECHO Installing Q329115_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q329115_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q329170_WXP_SP2_NL.exestart /wait %systemdrive%\install\Hotfixes\Q329170_WXP_SP2_NL.exe /Q /M /ZECHO.ECHO Installing Q329390_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q329390_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q329441_WXP_SP2_nl.exestart /wait %systemdrive%\install\Hotfixes\Q329441_WXP_SP2_nl.exe /Q /M /ZECHO.ECHO Installing Q329834_WXP_SP2_nl.exestart /wait %systemdrive%\install\Hotfixes\Q329834_WXP_SP2_nl.exe /Q /M /ZECHO.ECHO Installing Q331953_WXP_nl.exestart /wait %systemdrive%\install\Hotfixes\Q331953_WXP_nl.exe /Q /M /ZECHO.ECHO Installing Q810272_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q810272_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q810565_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q810565_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q810577_WXP_nl.exestart /wait %systemdrive%\install\Hotfixes\Q810577_WXP_nl.exe /Q /M /ZECHO.ECHO Installing Q810833_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q810833_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q811493_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q811493_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q811630_WXP_SP2_NL.exestart /wait %systemdrive%\install\Hotfixes\Q811630_WXP_SP2_NL.exe /Q /M /ZECHO.ECHO Installing Q814033_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q814033_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q815485_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q815485_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q814995_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q814995_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q815021_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q815021_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q817606_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q817606_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing Q819696_WXP_SP2_x86_NLD.exestart /wait %systemdrive%\install\Hotfixes\Q819696_WXP_SP2_x86_NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB282010-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB282010-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB817778-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB817778-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB818043-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB818043-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB820291-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB820291-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB821253-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB821253-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB821557-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB821557-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB823559-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB823559-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsXP-KB823980-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsXP-KB823980-x86-NLD.exe /Q /M /ZECHO.ECHO Installing WindowsMedia9-KB819639-x86-NLD.exestart /wait %systemdrive%\install\Hotfixes\WindowsMedia9-KB819639-x86-NLD.exe /Q:A /R:NECHO.ECHO Copying patched UXTheme.dll...REN %systemroot%\System32\dllcache\uxtheme.dll uxtheme.oldCOPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\uxtheme.dll uxtheme.oldCOPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\"EChO.ECHO Installing DirectX 9.0bECHO Please wait...start /wait %systemdrive%\install\DirectX9b\dxsetup.exe /opkECHO.ECHO Installing WinRAR 3.20ECHO Please wait...start /wait %systemdrive%\install\Applications\WinRAR\wrar320.exe /sECHO.ECHO Installing MSN Messenger 6.0.0602 FinalECHO Please wait...start /wait %systemdrive%\install\MSN\MsnMsgs.msi /QBECHO.ECHO Installing custom themes......start /wait %systemdrive%\install\tools\unrar.exe x -inul %systemdrive%\install\Themes\Themes.rar %systemroot%\Resources\ThemesECHO.ECHO Installing fonts.......start /wait %systemdrive%\install\tools\unrar.exe x -inul %systemdrive%\install\themes\fonts.rar %systemroot%\fontsECHO Klik op "J" gevolgd door enter om de instalatie te beeindigen.rmdir -r c:\install /sECHO.EXIT
Travelcard Posted August 6, 2003 Author Posted August 6, 2003 Thanks Muiz, The code looks pretty similar to mine though. Mine just automatically logs on 5 times. Does yours just logon on once?Cheers
devil270975 Posted August 7, 2003 Posted August 7, 2003 Hi there, I had the same problem, after much asking of questions and a lot of disc's later i stumbled across a file called ref.chm, who would have thought it, microsoft putting something informative in a help page...lol... anyway it seems if you encrypt the admin password it disables auto loginHere is what the file says.AUTOLOGONValue: Yes | NoDefault: NoRegistry subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\WinLogon\AutoAdminLogonConfigures the computer to automatically log on once with the Administrator account. The entry is not valid on upgrades.If you specify a password by using AdminPassword, that password is used when you automatically log on to the computer. After the installation is complete, the password is deleted from the copy of the answer file left on the computer. ImportantIf you encrypt the Administrator password with EncryptedAdminPassword, AutoLogon is disabled. To skip Windows Welcome, in the [unattended] section of Unattend.txt, set UnattendSwitch equal to Yes. Yes Configures the computer to automatically log on once with the Administrator account. No Does not automatically log on to the computer. Hope this helps.....Good LuckLee
Travelcard Posted August 7, 2003 Author Posted August 7, 2003 Fantastic!, that makes sense actually. I try that out tomorrow and will let you know how I get on.
Travelcard Posted August 8, 2003 Author Posted August 8, 2003 I had the same problem, after much asking of questions and a lot of disc's later i stumbled across a file called ref.chm, who would have thought it, microsoft putting something informative in a help page...lol... anyway it seems if you encrypt the admin password it disables auto loginYes, that worked Thanks again for that. I'd buy you a virtual pint if I could.
quya Posted August 8, 2003 Posted August 8, 2003 Actually, you can autologon and skip mini-setup even you set an AdminPassword and "EncryptedAdminPassword=Yes", follow the steps:1. Be sure to set "UnattendSwitch = Yes" in [unattended] section. "Yes" Instructs Setup to skip Windows Welcome, please note the switch is not "No" as many people said in this forum.2. Try to add another usename with administrator priviledge other than "administrator" before [GuiRunOnce]The second point means that you do not add the username in the batch command within [GuiRunOnce] but in Cmdlines.txt (Why so, please refer to Microsoft deploy.chm), the Cmdlines.txt will be auto executed before [GuiRunOnce] during installation. First, you create a file cmdlines.txt in $oem$ directory, copy the following text into this file.[COMMANDS]".\INSTALLS.CMD"It means it will execute INSTALLS.CMD, though you can directly add you command into cmdlines.txt , but every command should be quoted, so just call INSTALLS.CMD and put other commands into INSTALLS.CMD, it will be easier to edit.Then create a file INSTALLS.CMD also in $oem$ directory, edit it just like below.@ECHO OFFnet user "UserName" /add>nulnet localgroup administrators "UserName" /add>nulrem insert any other command you likePlease be sure quote the username if the username with some blank space, say "Paul Qu", otherwise it will report an error, it is a good idea to add the quote anyway.More Tips!Generally, most people leave the "Fullname & Orgname" blank in [userdata] section in their unattended CD, though it is not fully unattend, it is more flexible. I studied for some days and found a way to auto add "Fullname" as the "Username". Most people make the "Fullname" & "Username" same. Please copy & paste the following text into INSTALLS.CMD.@Echo Offreg export "hklm\software\microsoft\windows nt\currentversion" anyfilename1>nulfind /n "RegisteredOwner" anyfilename1>anyfilename2FOR /F "tokens=2 delims==" %%i in (anyfilename2) do set FName=%%iset FName=%FName:~1,-1%net user "%FName%" /add>nulnet localgroup administrators "%FName%" /add>nuldel anyfilename1del anyfilename2Maybe the above code is hard to understand, but it really works! Believe me and enjoy it.I am Chinese, if my broken English make you hard to understand, I must say sorry.
C0rpse Phxer420 Posted August 8, 2003 Posted August 8, 2003 lol, I thought that was funny at the end of your post you said apologized for your english, cuz you are Chinese. Man, you have perfect English, and THANK YOU for not only telling us what to do on the user creation using cmdlines.txt , but ALSO how to set it up. Well...back to my cave, l8er all!
C0rpse Phxer420 Posted August 8, 2003 Posted August 8, 2003 In my winnt.sif file, I would place the commands section BEFORE guirunonce, correct? How does this look?;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS Repartition=Yes UnattendSwitch="Yes" WaitForReboot="No" FileSystem=ConvertNTFS DriverSigningPolicy=Ignore OemPnPDriversPath="Drivers\Nvidia\Display;Drivers\Nvidia\Ethernet;Drivers\Nvidia\GART;Drivers\Nvidia\Memctrl;Drivers\Nvidia\SMBus;Drivers\Nvidia\USB;Drivers\Nvidia\IDE;Drivers\Modem;Drivers\Sound"[GuiUnattended] AdminPassword=* EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=4 OemSkipWelcome=1[UserData] ProductKey=***** FullName="Joe Dickerson" OrgName="" ComputerName=ANTHRAX[Display] BitsPerPel=32 Xresolution=1024 YResolution=768 Vrefresh=75[TapiLocation] CountryCode=1 Dialing=Tone AreaCode=760[Identification] JoinWorkgroup=HOME[Networking] InstallDefaultComponents=No[NetAdapters] Adapter1=params.Adapter1[params.Adapter1] INFID=*[NetClients] MS_MSClient=params.MS_MSClient[NetServices] MS_SERVER=params.MS_SERVER[NetProtocols] MS_TCPIP=params.MS_TCPIP MS_NWIPX=params.MS_NWIPX[params.MS_TCPIP] DNS=Yes UseDomainNameDevolution=No EnableLMHosts=Yes AdapterSections=params.MS_TCPIP.Adapter1[params.MS_TCPIP.Adapter1] SpecificTo=Adapter1 DHCP=Yes WINS=No NetBIOSOptions=0[params.MS_NWIPX] VirtualNetworkNumber=00000000 AdapterSections=params.MS_NWIPX.Adapter1[params.MS_NWIPX.Adapter1] SpecificTo=Adapter1 PktType=0xFF NetworkNumber=00000000[Components] msnexplr=off zonegames=off[Branding] BrandIEUsingUnattended=Yes[URL] Home_Page=about:blank[Commands] "%systemdrive%\install\install.CMD"[GuiRunOnce] %systemdrive%\install\main_batch.cmd %systemdrive%\install\applications.cmd %systemdrive%\install\reg.cmd %systemdrive%\install\cleanup.cmd %systemdrive%\install\shutdown.cmdBy doing that, it will look @ my install.cmd file under the install folder...inside the batch file:install.cmd@ECHO OFFnet user Joe /add>nulnet localgroup administrators Joe /add>nulThis will make the user Joe, and place him in the usergroup, administrators. So...when XP boots into gui mode, it should log into the Joe account and then run EVERYTHING in my [GuiRunOnce] section, correct?Also, what's up with the >nul command at the end?I hope this works
C0rpse Phxer420 Posted August 8, 2003 Posted August 8, 2003 Nevermind, the [commands] section goes into the cmdlines.txt
Aaron Posted August 8, 2003 Posted August 8, 2003 This is interesting, being able to create the username before GuiRunOnce. But the problem remains on how to tell setup to login with the created username, instead of the Admin account before GuiRunOnce starts.Could a registry entry be imported during GUI-mode Setup? The Autologon registry entry could be imported to get Setup to autologon to the created account.
C0rpse Phxer420 Posted August 8, 2003 Posted August 8, 2003 See, that's what I was thinking as well I was gonna say remember when it asks you to create a user account...if you only make one account, it hides the administrator account and automatically logins you into that user created account...but duh, gui has already started and if you want it as unattended as possible, unattendedswitch=yes If it creates the user BEFORE the gui starts, it may automatically choose that one. Once i have everything finished tonight (without office....gonna take twice as long, ugh) I will try out my cd with this cmdlines.txt thing and see how it goes. Best of luck to everyone!*edit*I was re-reading your post and I thought about that...he said that you could have your commands in the cmdlines.txt file or point them to a .cmd or .bat file...so, if you had an autologon script, you could have it run it, so essentially, yes it's possible. I was running around looking for reg tweaks and scripts...and I believe I came across an autologon batch file....I will have to go back and look, because I did not pay much attention to it...only one person uses this computer, so one account.
quya Posted August 9, 2003 Posted August 9, 2003 This is interesting, being able to create the username before GuiRunOnce. But the problem remains on how to tell setup to login with the created username, instead of the Admin account before GuiRunOnce starts.Could a registry entry be imported during GUI-mode Setup? The Autologon registry entry could be imported to get Setup to autologon to the created account.Yes, it will tell setup to login with the created username, instead of the Admin account before GuiRunOnce starts, if you act as my said. You needn't edit a registry entry any more.
fillalph Posted August 9, 2003 Posted August 9, 2003 quya: I have a question for you then.Could you explain your code (line by line ???)@Echo Offreg export "hklm\software\microsoft\windows nt\currentversion" anyfilename1>nulfind /n "RegisteredOwner" anyfilename1>anyfilename2FOR /F "tokens=2 delims==" %%i in (anyfilename2) do set FName=%%iset FName=%FName:~1,-1%net user "%FName%" /add>nulnet localgroup administrators "%FName%" /add>nuldel anyfilename1del anyfilename2better so that I could add some code to copy my "favourites" folder to Document Settings\UserThanks]Bonkers[
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now