webservices Posted September 11, 2004 Share Posted September 11, 2004 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 testrenameError setting user information (997).Any idea from where is the mistake ?Thx, Weeb. Link to comment Share on other sites More sharing options...
Jito463 Posted September 11, 2004 Share Posted September 11, 2004 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 More sharing options...
webservices Posted September 11, 2004 Author Share Posted September 11, 2004 it is in fact an XP pro version.I readed some stuff on severals forum, but each time i get an error.so if someone knows the answer, that wouls be great.weeb. Link to comment Share on other sites More sharing options...
Beetaazz Posted September 11, 2004 Share Posted September 11, 2004 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 More sharing options...
maxXPsoft Posted September 11, 2004 Share Posted September 11, 2004 BeetaazzThat 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 More sharing options...
Beetaazz Posted September 11, 2004 Share Posted September 11, 2004 tx maxXPsoft so is there any way o enter our own nick that will automatically boot into upon first boot after unattended install? thxbtw...sorry for hijack Link to comment Share on other sites More sharing options...
RyanVM Posted September 11, 2004 Share Posted September 11, 2004 You can edit syssetup.dll to rename it. Link to comment Share on other sites More sharing options...
jb3rry Posted September 11, 2004 Share Posted September 11, 2004 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.RunOnceExREG ADD %KEY%\215 /VE /D "Renaming Local Admin" /fREG ADD %KEY%\220 /V 1 /D Wscript.exe "%CDROM%\Software\vbs\admin.vbs" /f------------------------------------------------------------------------'vbscriptOn Error Resume NextstrComputer = "."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 AdminSet oMachine = GetObject("WinNT://" & strComputer)Set oInfoUser = GetObject("WinNT://" & strComputer & "/Administrator,user")set oUser = oMachine.MoveHere(oInfoUser.ADsPath,"NEWNAME")'Reseting Admin PasswordSet objUser = GetObject("WinNT://" & strComputer & "/NEWNAME, user")objUser.SetPassword "Password12"objUser.SetInfo'Renaming GuestSet oMachine = GetObject("WinNT://" & strComputer)Set oInfoUser = GetObject("WinNT://" & strComputer & "/Guest,user")set oUser = oMachine.MoveHere(oInfoUser.ADsPath, "NoGuest")'Reseting Guest PasswordSet objUser = GetObject("WinNT://" & strComputer & "/NoGuest, user")objUser.SetPassword "&*UIer78aB#4"objUser.SetInfo'Disabling Guest AccountSet objUser = GetObject("WinNT://" & strComputer & "/NoGuest")objUser.AccountDisabled = TrueobjUser.SetInfo'Deleting Help Assistant Account, Support AccountSet objComputer = GetObject("WinNT://" & strComputer & "")objComputer.Delete "user", strRemoveHAobjComputer.Delete "user", strRemoveSup Link to comment Share on other sites More sharing options...
Beetaazz Posted September 12, 2004 Share Posted September 12, 2004 tx ppl...I am noob at script, bat, etc so I guess i save from below line to bottom and name whateve.bat then run after a clean install? eh? Link to comment Share on other sites More sharing options...
maxXPsoft Posted September 12, 2004 Share Posted September 12, 2004 Beetazzfrom below line and save as admin.vbs Link to comment Share on other sites More sharing options...
Beetaazz Posted September 12, 2004 Share Posted September 12, 2004 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 Link to comment Share on other sites More sharing options...
idle.newbie Posted September 12, 2004 Share Posted September 12, 2004 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 More sharing options...
webservices Posted September 12, 2004 Author Share Posted September 12, 2004 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 More sharing options...
RyanVM Posted September 12, 2004 Share Posted September 12, 2004 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 More sharing options...
webservices Posted September 12, 2004 Author Share Posted September 12, 2004 wow, so many posts from gosh's. Can't find it after 30 mins.Nobody have a direct link on his post ? would be so great.ThxWeeb, 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