Kelsenellenelvian Posted May 9, 2006 Share Posted May 9, 2006 Ok I have done some searching and have yet to find a way to rename the administrator account during the unnattended setup so it first logs in as the renamed admin account. Can someone give me an idea? Link to comment Share on other sites More sharing options...
RogueSpear Posted May 9, 2006 Share Posted May 9, 2006 This is something my script pack does. Actually it disables the Administrator account which is preferred. But if you would rather rename it, I could retool the script to do that as well. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 9, 2006 Author Share Posted May 9, 2006 Would you mind please retooling me a script just to rename the admin account please I would be very gratefull. I want the name to be Kelsenellenelvian Link to comment Share on other sites More sharing options...
RogueSpear Posted May 9, 2006 Share Posted May 9, 2006 I'll see what I can do with that.. I think all I really have to do is remove the part of the script that disables that account. I'm already renaming it now. Link to comment Share on other sites More sharing options...
blinkdt Posted May 9, 2006 Share Posted May 9, 2006 (edited) K-, I do it through Cmdlines.txt using a utility called renuser.exe. You can grab it HERE.1. Drop it in your $OEM$ root with Cmdlines.txt.2. Add these entries to Cmdlines.txt including the quotes of course:"renuser.exe Administrator YOURNAME""AutoLogon.cmd"3. Place this batch file (AutoLogon.cmd) in your $OEM$ root with Cmdlines.txt as well:@echo off:: Set username (and password, optional) for admin user.set AdminUser=YOURNAMEset AdminPass=YOURPASSWORDreg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /freg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /d "%AdminPass%" /freg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /fCLSexitThe batch autologs the newly renamed administrator account, believe that came from BoardBabe. You can also run the third entry as a separate batch later in the install to disable autologon functionality (change "1" to "0") if you so desire. Works like a charm. Edited May 9, 2006 by blinkdt Link to comment Share on other sites More sharing options...
Sonic Posted May 9, 2006 Share Posted May 9, 2006 I use a vbs from a member, I don't remember his name It's applied at cmdlines.txt by [Commands]"Wscript Accounts.vbs"'Accounts.vbsOn Error Resume NextstrComputer = "."Set WshShell = WScript.CreateObject("WScript.Shell")Set WshNetwork = WScript.CreateObject("WScript.Network")Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & "." & "\root\default:StdRegProv")strComputer = WshNetwork.ComputerName'Rename AdministratorSet oMachine = GetObject("WinNT://" & strComputer)Set oInfoUser = GetObject("WinNT://" & strComputer & "/Administrator,user")set oUser = oMachine.MoveHere(oInfoUser.ADsPath,"YourWantedLogin")'Password, delete that if you don't wan passwordSet objUser = GetObject("WinNT://" & strComputer & "/Sonic, user")objUser.SetPassword "thepasswordnocrypted"objUser.SetInfoedit: Why I can't write "f o r u m e r" without spaces ?? Link to comment Share on other sites More sharing options...
Romeo26222 Posted May 9, 2006 Share Posted May 9, 2006 i did this using nlite in the options tab there is rename admin account..easy!!! Link to comment Share on other sites More sharing options...
RogueSpear Posted May 9, 2006 Share Posted May 9, 2006 Sonic posted pretty much exactly what I had in mind. My last post was just before my eyes slammed shut, so I had planned on posting it this morning. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 9, 2006 Author Share Posted May 9, 2006 Thanks a lot guys I got it now! Great help. Link to comment Share on other sites More sharing options...
Ryaren Posted May 12, 2006 Share Posted May 12, 2006 (edited) I tried your ideas but I have a problem. When I rename administrator the system stop and can't logon... I tried with nlite, renuser and registry modify but never works! I tried your ideas but I have a problem. When I rename administrator the system stop and can't logon... I tried with nlite, renuser and registry modify but never works! Edited May 12, 2006 by Ryaren Link to comment Share on other sites More sharing options...
cancerface Posted May 14, 2006 Share Posted May 14, 2006 Hi,I added an option to rename the 'Administrator' account to a little GUI I made that creates a user in an (un)attended mode. You may want to take a look at it here. It also has an option to create a dummy administrator account, although this feature is localized (ie it works only for english versions of windows until a can figure out a way of getting the Administrator username in other languages from the system)CF Link to comment Share on other sites More sharing options...
DisabledTrucker Posted May 25, 2006 Share Posted May 25, 2006 This is something my script pack does. Actually it disables the Administrator account which is preferred. But if you would rather rename it, I could retool the script to do that as well.I'm needing to find out how to do this with x64 edition, the cmdlines.txt doesn't work with x64 edition. If anyone knows how to do this please tell... TIA Link to comment Share on other sites More sharing options...
stuartg Posted May 25, 2006 Share Posted May 25, 2006 Simply use the builtin tools available...Apply a security policy using an .inf file[unicode]Unicode=yes[Version]signature="$CHICAGO$"Revision=1[Profile Description]Description=profile description[system Access]MinimumPasswordAge = 10MaximumPasswordAge = 30MinimumPasswordLength = 6RequireLogonToChangePassword = 0NewAdministratorName = "NewAdminAccountName"NewGuestName = "NewGuestAccountName"Simple to apply from a cmd linesecedit /configure /db %windir%\security\database\localdb.sdb /cfg %systemdrive%\install\local\policy\policyname.inf /verbose Link to comment Share on other sites More sharing options...
DisabledTrucker Posted May 30, 2006 Share Posted May 30, 2006 sorry, I'm not all up on using GP, when would I call this and where would I put that cmd line? Link to comment Share on other sites More sharing options...
JuMz Posted May 30, 2006 Share Posted May 30, 2006 Simply use the builtin tools available...Apply a security policy using an .inf file[unicode]Unicode=yes[Version]signature="$CHICAGO$"Revision=1[Profile Description]Description=profile description[system Access]MinimumPasswordAge = 10MaximumPasswordAge = 30MinimumPasswordLength = 6RequireLogonToChangePassword = 0NewAdministratorName = "NewAdminAccountName"NewGuestName = "NewGuestAccountName"Simple to apply from a cmd linesecedit /configure /db %windir%\security\database\localdb.sdb /cfg %systemdrive%\install\local\policy\policyname.inf /verboseWOAH. Didn't know you could do GP's like that... 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