ToBe Posted April 6, 2004 Posted April 6, 2004 (edited) Hi!I have a question about the out of box experience, oobe in Windows XP:Once my unattended install is finished, and the administrator account has been autologged in once, all the runonceexec hotfixes and programs has been installed, is there a way after reboot so you can get the oobe screen started? To create user accounts etc?I don't want to create user accounts during installation, which I know is possible, I want to be able to choose names and so on when all is installed and the computer has rebooted.I've tried using sysprep.exe -reseal -oobe -reboot -nosidgen, but then you have to accept the eula, and other things I don't want.RegardsToBe Edited April 15, 2004 by ToBe
rdalling Posted April 6, 2004 Posted April 6, 2004 I believe If you do a sysprep -reseal you will get the results your looking for.
gosh Posted April 6, 2004 Posted April 6, 2004 Do a regular install, and at the 1 min mark where it says "please take out any floppy disks and press OK to restart setup", open regedit and export this key:HKEY_LOCAL_MACHINE\system\SetupThen in your runonceex import the registry key, and it'll run oobe on next reboot If you want to be nice post the .reg file you make so i can add it to my records.-gosh
ToBe Posted April 7, 2004 Author Posted April 7, 2004 (edited) Works with no autologin, but if you use unattendswitch=yes, see my post below.Thanx gosh for leading me on the right track! Heres the content, imported as setup.reg as the last entry in RunOnceExec before rebooting:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\Setup]"SetupType"=dword:00000002"SystemSetupInProgress"=dword:00000000"CmdLine"=hex(7):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53, \ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,6f,00, \ 62,00,65,00,5c,00,6d,00,73,00,6f,00,6f,00,62,00,65,00,2e,00,65,00,78,00,65, \ 00,20,00,2f,00,66,00,20,00,2f,00,72,00,65,00,74,00,61,00,69,00,6c,00,00,00"SystemPrefix"=hex:d6,0b,00,00,00,c0,40,0a"SystemPartition"="\Device\HarddiskVolume1""OsLoaderPath"="\""OobeInProgress"=dword:00000001[HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart][HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart\AFD][HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart\EventLog][HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart\PlugPlay][HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart\ProtectedStorage][HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart\Rpcss][HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart\SamSs][HKEY_LOCAL_MACHINE\SYSTEM\Setup\AllowStart\WS2IFSL][HKEY_LOCAL_MACHINE\SYSTEM\Setup\Pid]"Pid"="XXXXXXXX"REPLACE THE X's on the last line with the pid you have in your setupp.ini file in the i386 folder of winxp.Happy easternToBe Edited April 15, 2004 by ToBe
gosh Posted April 8, 2004 Posted April 8, 2004 great. If you want to you can slim it down, this should work:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\Setup]"SetupType"=dword:00000002"SystemSetupInProgress"=dword:00000000"CmdLine"=hex(7):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53, \ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,6f,00, \ 62,00,65,00,5c,00,6d,00,73,00,6f,00,6f,00,62,00,65,00,2e,00,65,00,78,00,65, \ 00,20,00,2f,00,66,00,20,00,2f,00,72,00,65,00,74,00,61,00,69,00,6c,00,00,00"SystemPrefix"=hex:d6,0b,00,00,00,c0,40,0a"SystemPartition"="\Device\HarddiskVolume1""OsLoaderPath"="\""OobeInProgress"=dword:00000001-gosh
ToBe Posted April 13, 2004 Author Posted April 13, 2004 Hmm, after all this didn't work....Should have posted earlier, but I've been away on an eastern vacation....When I tried it on a computer with the welcome screen available after the unattended install it works. I create a user, log in, and then I run the regfile and the welcome screen comes back when rebooting.But as soon as I add the UnattendSwitch=Yes it does not work, the user, or the administrator gets logged in. I've tried with AutoAdminLogon=0 and blanking out DefaultUserName and DefaultPassword with no luckAlso, this part of the regfile"CmdLine"=hex(7):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53, \00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,6f,00, \62,00,65,00,5c,00,6d,00,73,00,6f,00,6f,00,62,00,65,00,2e,00,65,00,78,00,65, \00,20,00,2f,00,66,00,20,00,2f,00,72,00,65,00,74,00,61,00,69,00,6c,00,00,00Points to c:\windows, and it seems it doesn't take a %systemroot% parameter.....I will dig deeper into this and post here if I find a solution.Any suggestions are appreciated
ToBe Posted April 15, 2004 Author Posted April 15, 2004 (edited) It seems that when you set the unattendswitch=yes, windows changes one line in the file %systemroot%\system32\oobe\oobeinfo.ini. If you copy this file with IntroOnly=0, it will work....this is a part of my RunOnceExec.cmd:REG ADD %KEY%\052 /VE /D "Configuring settings" /fREG ADD %KEY%\052 /V 1 /D "%cdrom%\SETUP\WINXP\PRO\$OEM$\Batches\oobe.cmd" /fREG ADD %KEY%\052 /V 2 /D "REGEDIT /S %cdrom%\SETUP\WINXP\PRO\$OEM$\oobe.reg" /fThis is my oobe.cmd:@ECHO OFFcmdow @ /HIDSET CDROM=IF EXIST D:\cdrom.her SET CDROM=D:IF EXIST E:\cdrom.her SET CDROM=E:IF EXIST F:\cdrom.her SET CDROM=F:IF EXIST G:\cdrom.her SET CDROM=G:IF EXIST H:\cdrom.her SET CDROM=H:IF EXIST I:\cdrom.her SET CDROM=I:IF EXIST J:\cdrom.her SET CDROM=J:IF EXIST K:\cdrom.her SET CDROM=K:IF EXIST L:\cdrom.her SET CDROM=L:IF EXIST M:\cdrom.her SET CDROM=M:IF EXIST N:\cdrom.her SET CDROM=N:IF EXIST O:\cdrom.her SET CDROM=O:IF EXIST P:\cdrom.her SET CDROM=P:IF EXIST Q:\cdrom.her SET CDROM=Q:IF EXIST R:\cdrom.her SET CDROM=R:IF EXIST S:\cdrom.her SET CDROM=S:IF EXIST T:\cdrom.her SET CDROM=T:IF EXIST U:\cdrom.her SET CDROM=U:IF EXIST V:\cdrom.her SET CDROM=V:IF EXIST W:\cdrom.her SET CDROM=W:IF EXIST X:\cdrom.her SET CDROM=X:IF EXIST Y:\cdrom.her SET CDROM=Y:IF EXIST Z:\cdrom.her SET CDROM=Z:copy "%cdrom%\SETUP\WINXP\PRO\$OEM$\oobeinfo.ini" "%systemroot%\System32\oobe\" /yEXITThe oobeinfo.ini:[StartupOptions]StartUrl=""Registration=1 <--- Hides the registration screenOffline=1 <--- Hides the connect to internet screenScreenResolutionCheck=1[options]MouseTutorial=0JoinDomain=1AdminPw=1IntroOnly=0 <--- This must be set to zero. Unattendswitch=yes sets this to 1 and you don't want that.[OEMRegistrationPage]OEMAddRegPage=0PostToOEM=0RegPostURL=""[Signup]ISPSignup=MSNOfferCode=0Locales=1,81IDLocales=1,81,33,49,107,61,44and finally, my oobe.reg:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="""DefaultPassword"="""AutoAdminLogon"="0"[HKEY_LOCAL_MACHINE\SYSTEM\Setup]"SetupType"=dword:00000002"CmdLine"=hex(7):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53, \ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6f,00,6f,00, \ 62,00,65,00,5c,00,6d,00,73,00,6f,00,6f,00,62,00,65,00,2e,00,65,00,78,00,65, \ 00,20,00,2f,00,66,00,20,00,2f,00,72,00,65,00,74,00,61,00,69,00,6c,00,00,00"OobeInProgress"=dword:0000000Still having a problem setting a %systemroot% parameter in the CmdLine part of the regfile, though. Anyone knows how to get this working? Edited April 19, 2004 by ToBe
ToBe Posted April 15, 2004 Author Posted April 15, 2004 lol, why make things easy?Deleted the regfile and created an inf file instead.Now my RunOnceExec.cmd looks like this:REG ADD %KEY%\052 /VE /D "Configuring settings" /fREG ADD %KEY%\052 /V 1 /D "%cdrom%\SETUP\WINXP\PRO\$OEM$\Batches\oobe.cmd" /fREG ADD %KEY%\052 /V 2 /D "rundll32 setupapi,InstallHinfSection DefaultInstall 128 %cdrom%\SETUP\WINXP\PRO\$OEM$\oobe.inf" /fcreated a file in the $OEM$ folder called oobe.inf looking like this:[Version]signature="$Windows NT$"[DefaultInstall]AddReg = Oobe.Reg[Oobe.Reg]HKLM,"SYSTEM\Setup","CmdLine",0x00010000,"%11%\oobe\msoobe.exe /f /retail"HKLM,"SYSTEM\Setup","SetupType",0x00010001,2HKLM,"SYSTEM\Setup","OobeInProgress",0x00010001,1HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultUserName",0x00000000,""HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultPassword",0x00000000,""HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AutoAdminLogon",0x00000000,"0"This makes the CmdLine value point to %systemroot%\system32\oobe\msoobe.exe regardless of what partition windows is installed to.The rest of my files, oobeinfo.ini, oobe.cmd, remain unchanged.Problem solved!Multiboot DVD finished... (again) Hoping someone finds my struggle useful..... RegardsToBe//end spamming the board
ToBe Posted April 24, 2004 Author Posted April 24, 2004 OK, one final post about this, finalizing things. I made the inf file copy oobeinfo.ini to the system32\oobe folder, so there's no need for a cmd-file.Now my oobe.inf, placed in the $oem$-folder, looks like this:[Version]signature="$Windows NT$"[SourceDisksNames.X86]10=,,-01,\Applications\Oobe <--This points to %wheretheinfwascalledfrom%\applications\oobe[SourceDisksFiles]oobeinfo.ini=10[DestinationDirs]CopyOobe = 11,\oobe <--This points to %WinDir%\System32\oobe[DefaultInstall]AddReg = Oobe.RegCopyFiles = CopyOobe[CopyOobe]oobeinfo.ini[Oobe.Reg]HKLM,"SYSTEM\Setup","CmdLine",0x00010000,"%11%\oobe\msoobe.exe /f /retail"HKLM,"SYSTEM\Setup","SetupType",0x00010001,2HKLM,"SYSTEM\Setup","OobeInProgress",0x00010001,1HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultUserName",0x00000000,""HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultPassword",0x00000000,""HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AutoAdminLogon",0x00000000,"0"It's called from runonceex.inf, also in the $oem$-folder, with this:[Version]Signature="$Windows NT$"[SourceDisksNames.X86]1 = %cdname%,%cdtagfile%,,[DefaultInstall]AddReg = Settings.Reg[Settings.Reg]HKLM,"%RunOnceEx%\",Title,0,"Multiboot-DVD: Adjusting settings"HKLM,"%RunOnceEx%\",Flags,0x00010001,20HKLM,"%RunOnceEx%\install100",,,"Configuring Welcome-Screen"HKLM,"%RunOnceEx%\install100",1,,"rundll32 setupapi,InstallHinfSection DefaultInstall 128 %1%\oobe.inf"[Strings]cdname = "Windows DVD"productname = "Windows MultiBoot-DVD"cdtagfile = "\Win51ip"My oobeinfo.ini is placed in the folder $OEM$\Applications\Oobe on the CD, and looks like this:[StartupOptions]StartUrl=""ScreenResolutionCheck=1[options]MouseTutorial=0JoinDomain=1AdminPw=1IntroOnly=0[OEMRegistrationPage]OEMAddRegPage=0PostToOEM=0RegPostURL=""[Signup]ISPSignup=MSNOfferCode=0Locales=1,81IDLocales=1,81,33,49,107,61,44When the cd has made it's autologon and installed all applications, after reboot, the user can choose his/hers own name from the Welcome Screen. No need for sysprep to waste time resealing the computer.//Really end spamming the board
dpcpro Posted April 25, 2004 Posted April 25, 2004 When the computer reboots, will this prompt you for the username and organization and also allow you to add users right from the Welcome screen?I can't seem to get this to work. It will prompt to add users as long as none exist other than the default ones, but it never asks me for the username and organization. I'm guessing because I already had that info in my winnt.sif file.I want to keep that info in my winnt.sif file so that I can install everything without prompts, but then when I'm finished I want to get prompted to enter a username and org.Can you help me out? Thanks.dpcpro
[BM]Crusher Posted April 25, 2004 Posted April 25, 2004 DPCPROif you have the information in your WINNT.SIF for Username Business Name Computer Name etc, you have to add the same lines to your oobeinfo.inf file but leave them blank
dpcpro Posted April 25, 2004 Posted April 25, 2004 I just tried this, but still no luck:[StartupOptions]StartUrl=[options]MouseTutorial=0JoinDomain=1AdminPw=1IntroOnly=0TimeZone = 1[OEMRegistrationPage]OEMAddRegPage=0PostToOEM=0RegPostURL=[Signup]ISPSignup=MSNOfferCode=0Locales=1,81IDLocales=1,81,33,49,107,61,44[Version]ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"[UserData]FullName=OrgName=ComputerName=*I added the last section where it says UserData and it still doesn't work. Am I suppose to put these values in another section? Can you send me a sample?The ref.chm file which talks about Oebeinfo.ini doesn't appear to have any options for this.Thanks for the help.dpcpro
[BM]Crusher Posted April 25, 2004 Posted April 25, 2004 hahahaha,.... ok... i'm a bit drunk i was thinking of sysprep.inf hehehei don't think oobe will ask you that info... sysprep will though hehsysprep -reseal -nosidgen -reboot -activated (or something like that)check ref.chm for proper sysprep usage (is it in there)
dpcpro Posted April 25, 2004 Posted April 25, 2004 I have tried sysprep with all options possible and the only one that will get it to display the user and org info is mini setup. I would like to get this to work oobe. All of the oems do this when buy a system from the store, you get prompted for this right at the welcome screen.Thanks.dpcpro
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