Jump to content

Recommended Posts

Posted

Hey all,

I changed the administrators name to my name using nLite and now windows trys to log onto the administrator account even though it doesnt exist! So autologin isnt working.

How can I fix this!? PLEASE!?


Posted

My guess is that you still have these settings in your WINNT.SIF file:

[GuiUnattended]
AdminPassword = YourPassword
EncryptedAdminPassword = No
AutoLogon = Yes
AutoLogonCount = 1

It uses Administrator default. I'm not sure if you can specify a different administrator account in WINNT.SIF? :whistle:

Posted

Here is my method for creating admin user with autlogon using a batchfile.

@echo off

: Set username and password (leave blank for non).
set AdminUser=BoardBabe
set AdminPass=

: Adding user.
net user %AdminUser% %AdminPass% /add
net localgroup Administratorer %AdminUser% /add
net accounts /maxpwage:unlimited

: Activate autologon.
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /d "%AdminPass%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f

exit

Posted (edited)

You put it in CMDLINES.TXT I assume? :thumbup

Edit: Yeah ... I saw you mentioned a batch file and of course, that's what I meant... Heheh...

Edited by Anderz
Posted

ok here's the winnt.sif.

I dont want to create an additional administrator account. I would like the original one renamed and auto login...

@ Boardbabe

Is this what your script does?

cheers.

Posted

Suppose I'll have to use that method then!

Is there no way of using the original administrator account just renamed?

Posted (edited)

I use a VBS that renames the Administrator account. Can be run during RunOnceEx for instance. Haven't tested it though - I run it from desktop after installation is completed...

:D

Edited by Anderz
Posted (edited)

argh!!!! It's not working!!!

AddUSer.cmd

cmdow @ /HID
@echo off

SET AdminUser=Antonio
SET AdminPass=********

NET user %AdminUser% %AdminPass% /add
NET localgroup Administrators %AdminUser% /add
NET accounts /maxpwage:unlimited

REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /d "%AdminPass%" /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "5" /f

EXIT

Just doesn't work :(

Edited by antonio_king
Posted

nlhive.inf and nlite.in_ doesnt contain any autologin information.

I have no other auto login in any batch or registry files!?

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