wing_bbs Posted May 12, 2007 Share Posted May 12, 2007 During the unattended installation, I use oobeinfo.ini to creater an account called "HOME" that has administrator priviliege and also use a INF file ,which sets my accout should be the first logon account, to change related registry keys on T-13 time. But on the windows first starts, it always use administrator that created by system as the first logon account. Never used my account "HOME". Why? I have searched a lot of related threads and followed their instructions. But still can not reach my aim. Someon Please help me! MY OOBEINFO.INI FILE[StartupOptions]StartUrl=""[options]MouseTutorial=0JoinDomain=1AdminPw=1[OEMRegistrationPage]OEMAddRegPage=0PostToOEM=0RegPostURL=""[Signup]ISPSignup=MSNOfferCode=0Locales=1,81IDLocales=1,81,33,49,107,61,44[UserInfo]Identity000="HOME"MY INF FILE (PART)[Others];Automatic logon for Windows this will allow you to auto login. Replace InsertName value with the Username you want to autologin with. Replace InsertPassword value with the password corresponding to the Username specified.;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon];"DefaultUserName"="InsertName";"DefaultPassword"="InsertPassword";"AutoAdminLogon"="1"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultUserName",0,"HOME"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultPassword",0,""HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AutoAdminLogon",0,"1"HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ForceAutoLogon",0,"1"MY WINNT.SIF FILE (PART)[GuiUnattended] AdminPassword=1234 AutoLogon = NO ;AutoLogonCount = 2 EncryptedAdminPassword=NO OEMSkipRegional = 1 OemSkipWelcome = 1 TimeZone = 210 [Unattended] CrashDumpSetting = 1 DisableVirtualOemDevices = Yes UnattendMode = FullUnattended OemSkipEula = Yes OemPreinstall = Yes OemPnPDriversPath = Drivers\ES2838;Drivers\A1u680b\Vinyl\drivers\XPWDM TargetPath = \WINDOWS FileSystem = ConvertNTFS NtUpgrade = No OverwriteOemFilesOnUpgrade = No UnattendSwitch = Yes DriverSigningPolicy = Ignore Hibernation = No WaitForReboot = No Repartition = No Link to comment Share on other sites More sharing options...
wing_bbs Posted May 14, 2007 Author Share Posted May 14, 2007 Please Help! Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 14, 2007 Share Posted May 14, 2007 Here is the batch file I use modified for your purpose:@echo offset AdminUser=Homereg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /freg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /fCLSexitSave as a bat or cmd file and add to commandlinesPersonally I rename my actual original admin account (Lots easier) Link to comment Share on other sites More sharing options...
wing_bbs Posted May 15, 2007 Author Share Posted May 15, 2007 Thank you very much! I still have two questions.1. When the registry key should be added to registry on the T-13 or other time ?2. Can you mention more about the way how to rename the original admin account during unattended installation? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 15, 2007 Share Posted May 15, 2007 I add it in during cmdlines so yeah at t-13.As for renaming the Admin account it can be done at the same time.Add the following line to cmdlines.txt "renuser.exe Administrator Kelsenellenelvian" <-- change my name for the name you want!And add the attached app into your oem folder.Thats all! Link to comment Share on other sites More sharing options...
wing_bbs Posted May 15, 2007 Author Share Posted May 15, 2007 I will try it. Link to comment Share on other sites More sharing options...
wing_bbs Posted May 17, 2007 Author Share Posted May 17, 2007 (edited) Here is the batch file I use modified for your purpose:@echo offset AdminUser=Homereg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /freg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /fCLSexitSave as a bat or cmd file and add to commandlinesPersonally I rename my actual original admin account (Lots easier)I added these registry keys to my SETT.INF that is used to change registry on T-13. But Nothing happened, On the first logon Windows still try to use administrator to logon. And then, gave me a error message, declared that it could not find the administrator account. But during the windows installations, it still need me add administrator password. So strange. I am sure that SETT.INF is correct because other changes to registry have been added to the registry . Another thing, after the first logon happened, I checked the registy key and found out that the value of "DefaultUserName" still is ADMINISTRATOR. If I never change the value, on the each time, Windows will try to use ADMINISTRATOR to logon not my account and give me a promot the ADMINISTRATOR can not be found.Please check my inf file and winnt.sif I have pasted them on the above. Thx Edited May 17, 2007 by wing_bbs Link to comment Share on other sites More sharing options...
ponghy Posted May 19, 2007 Share Posted May 19, 2007 I think OOBEINFO.INI is not processed if you specify this directive:UnattendSwitch = Yesin WINNT.SIF, but I'm not sure. According to ref.chm:Syntax UnattendSwitch = Yes | No Values Yes Instructs Setup to skip Windows Welcome.No Instructs Setup not to skip Windows Welcome.I.e., "Windows Welcome" = "OOBE", and OOBEINFO.INI is processed by OOBE.Correct me if I'm wrong. Link to comment Share on other sites More sharing options...
wing_bbs Posted May 21, 2007 Author Share Posted May 21, 2007 You are wrong. Your method is useless. Link to comment Share on other sites More sharing options...
ponghy Posted May 21, 2007 Share Posted May 21, 2007 I'm not explaining "a method", only I'm explaining that probably OOBEINFO is not processed if the UnattendSwitch = Yes directive is set.Can you explain better why it is 'useless'? Link to comment Share on other sites More sharing options...
wing_bbs Posted May 23, 2007 Author Share Posted May 23, 2007 I finally completed this. The method is that you should leave the value of "DefaultUserName" blank. So easy. The windows will automatically use "HOME" as the first time logon account. HKLM,"SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon","DefaultUserName",0,""HKLM,"SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon","DefaultPassword",0,""HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AutoAdminLogon",0,"1" 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