Jump to content

Can I use my admin account to logon on the first time ?


Recommended Posts

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! :ph34r:

MY OOBEINFO.INI FILE

[StartupOptions]
StartUrl=""

[options]
MouseTutorial=0
JoinDomain=1
AdminPw=1

[OEMRegistrationPage]
OEMAddRegPage=0
PostToOEM=0
RegPostURL=""

[Signup]
ISPSignup=MSN
OfferCode=0
Locales=1,81
IDLocales=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


Here is the batch file I use modified for your purpose:

@echo off

set AdminUser=Home

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f

CLS

exit

Save as a bat or cmd file and add to commandlines

Personally I rename my actual original admin account (Lots easier)

Link to comment
Share on other sites

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? :o

Link to comment
Share on other sites

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

Here is the batch file I use modified for your purpose:
@echo off

set AdminUser=Home

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f

CLS

exit

Save as a bat or cmd file and add to commandlines

Personally 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.:wacko:

Please check my inf file and winnt.sif I have pasted them on the above. Thx :ph34r:

Edited by wing_bbs
Link to comment
Share on other sites

I think OOBEINFO.INI is not processed if you specify this directive:

UnattendSwitch = Yes

in 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

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

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. :P:P

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...