Jump to content

Error renaming Administrator account.


Recommended Posts

Hi,

i am using the renuser.exe during my unattened installation to rename the administrator account. I try when logged too and i get this error :

renuser.exe Administrator testrename

Error setting user information (997).

Any idea from where is the mistake ?

Thx,

Weeb.

Link to comment
Share on other sites


I don't believe you can rename the actual Administrator account. Any other Administrator-level account, yes. But there has to exist an actual account called Administrator if I'm not mistaken. I'm sure if I am, someone will point out my error.

Btw, is this Home or Pro? Home I know for sure this is the problem. Pro, I'm not 100% certain.

Link to comment
Share on other sites

wouldnt it be nice if there was a way to tell nlite to create your admin account w/ your username already in place...like you do when you do an "attended" install....I always have done attended installs and enter my username as the only admin account.

sorry I am not of any help to you but I am intrested to see an answer to this myself.

BTW...Love this forum...great info

Link to comment
Share on other sites

Beetaazz

That Administrator account exists behind the scenes. Reboot into safe mode you'll find it as a logon option. Its a backdoor into your PC if you don't set a password on that account. 1 thing I don't like that Mikeysoft done that way.

Link to comment
Share on other sites

Below is the code I Call from RunOnceEx....

Afterwards you do need to reboot or else the administrator group will still show "Administrator" After reboot the administrator group will show the new name for administrator.

RunOnceEx

REG ADD %KEY%\215 /VE /D "Renaming Local Admin" /f

REG ADD %KEY%\220 /V 1 /D Wscript.exe "%CDROM%\Software\vbs\admin.vbs" /f

------------------------------------------------------------------------

'vbscript

On Error Resume Next

strComputer = "."

strCompPass = "Password12"

strRemoveHA = "HelpAssistant"

strRemoveSup = "SUPPORT_388945a0"

strRemoveAdmin = "Administrator"

Set WshShell = WScript.CreateObject("WScript.Shell")

Set WshNetwork = WScript.CreateObject("WScript.Network")

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & "." & "\root\default:StdRegProv")

strComputer = WshNetwork.ComputerName

'Renaming Admin

Set oMachine = GetObject("WinNT://" & strComputer)

Set oInfoUser = GetObject("WinNT://" & strComputer & "/Administrator,user")

set oUser = oMachine.MoveHere(oInfoUser.ADsPath,"NEWNAME")

'Reseting Admin Password

Set objUser = GetObject("WinNT://" & strComputer & "/NEWNAME, user")

objUser.SetPassword "Password12"

objUser.SetInfo

'Renaming Guest

Set oMachine = GetObject("WinNT://" & strComputer)

Set oInfoUser = GetObject("WinNT://" & strComputer & "/Guest,user")

set oUser = oMachine.MoveHere(oInfoUser.ADsPath, "NoGuest")

'Reseting Guest Password

Set objUser = GetObject("WinNT://" & strComputer & "/NoGuest, user")

objUser.SetPassword "&*UIer78aB#4"

objUser.SetInfo

'Disabling Guest Account

Set objUser = GetObject("WinNT://" & strComputer & "/NoGuest")

objUser.AccountDisabled = True

objUser.SetInfo

'Deleting Help Assistant Account, Support Account

Set objComputer = GetObject("WinNT://" & strComputer & "")

objComputer.Delete "user", strRemoveHA

objComputer.Delete "user", strRemoveSup

Link to comment
Share on other sites

kool tx...oh scary for a minute...pc wouldnt boot so I used erd locksmith and found out that I hadnt changed from the word "newname" which is how I had to logon the first time til I changed the script....thx alot for the help...now if I can fig out a way to incorp this action into winlite so after a clean install I wont have to run the script :thumbup

Link to comment
Share on other sites

i use "NetUser.exe"(search in this forum) @T-12, never fails me.

of cause you can rename built-in administrator & guest account, but you couldn't delete them.

maybe you rename the wrong account name, what the word administrator in French? or check it using "NET USER" in commandline window.

Link to comment
Share on other sites

Thx for all your reply, you gave me way to find out how to rename admin account.

I did a try and it works. I guess i will try to edit the .dll to change from the start the admin user account name without commadn script.

I will also try later the vbs method later.

Thx you all men.

Weeb.

Link to comment
Share on other sites

Thx for all your reply, you gave me way to find out how to rename admin account.

I did a try and it works. I guess i will try to edit the .dll to change from the start the admin user account name without commadn script.

I will also try later the vbs method later.

Thx you all men.

Weeb.

Search for gosh's post on editing syssetup.dll

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