Jump to content

Rename Admin Account


vampus8

Recommended Posts


On the backend, how does nLite rename administrator accounts? Is it a registry tweak? Is this being done through nlite.cmd at guirunonce? It'd be a huge help. Thanks everyone.

Kevin

I don't know exactly, but here's what I see.

In defltwk.in_ (defltwk.inf), we see:

[system Access]NewAdministratorName = "newAdminAcount"

In nlite.in_ (nlite.inf), we see:

[P]HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultUserName"

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AltDefaultUserName"

[T]

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultUserName",0x00000000,"newAdminAcount"

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AltDefaultUserName",0x00000000,"newAdminAcount"

Really, that's all that happens. As far as I can see "NewAdministratorName" is a definable value, and Windows does the rest. The part in nlite.inf just makes the logging in easier.

Link to comment
Share on other sites

  • 2 weeks later...

OK, I also need to rename the default "administrator". Because our PC's join our domain during the RIS installation, the PC's have our domain policies applied during the last reboot of the default installation.

Because one of our policies rename the admin account, the auto-logon failed. That's why I have to change the admin name.

I read this post, searched for the "DEFLTWK.IN_ file and opened it. But this file only contains strange characters and no "newAdminAcount".....

Could someone please tell me how to make this file readable and of course, adjustable?

Thanks a lot!

Link to comment
Share on other sites

I read this post, searched for the "DEFLTWK.IN_ file and opened it. But this file only contains strange characters and no "newAdminAcount".....

Have you actually unpacked DEFLTWK.IN_ ?

You should copy it to some other location then open command prompt and type:

expand DEFLTWK.IN_ DEFLTWK.INF

Then look in the DEFLTWK.INF for [system Access] section and the NewAdministratorName entry should be there. If it's not you can add it as:

NewAdministratorName = "guru"

Obviously change 'guru' to whatever you want admin account to be called. After that you need to pack the DEFLTWK.INF. You'll need makecab for that. Open your cmd prompt again and type:

makecab DEFLTWK.INF

Now you can copy the newly created DEFLTWK.IN_ to your windows source.

The question is: why not simply use nLite for that?

Link to comment
Share on other sites

  • 8 months later...

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