May 9, 200620 yr 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?
May 9, 200620 yr 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.
May 9, 200620 yr Author 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
May 9, 200620 yr 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.
May 9, 200620 yr 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, 200620 yr by blinkdt
May 9, 200620 yr 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 ??
May 9, 200620 yr 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.
May 12, 200620 yr 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, 200620 yr by Ryaren
May 14, 200620 yr 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
May 25, 200620 yr 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
May 25, 200620 yr 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
May 30, 200620 yr sorry, I'm not all up on using GP, when would I call this and where would I put that cmd line?
May 30, 200620 yr 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...
Create an account or sign in to comment