Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rename Admin account unnatended

Featured Replies

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

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=YOURNAME
set AdminPass=YOURPASSWORD

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%AdminUser%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /d "%AdminPass%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f

CLS
exit

The 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 by blinkdt

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.vbs
On Error Resume Next

strComputer = "."

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 Administrator
Set 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 password
Set objUser = GetObject("WinNT://" & strComputer & "/Sonic, user")
objUser.SetPassword "thepasswordnocrypted"
objUser.SetInfo

edit: Why I can't write "f o r u m e r" without spaces ??

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.

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 by Ryaren

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

  • 2 weeks later...
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. :realmad:

If anyone knows how to do this please tell... TIA

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 = 10

MaximumPasswordAge = 30

MinimumPasswordLength = 6

RequireLogonToChangePassword = 0

NewAdministratorName = "NewAdminAccountName"

NewGuestName = "NewGuestAccountName"

Simple to apply from a cmd line

secedit /configure /db %windir%\security\database\localdb.sdb /cfg %systemdrive%\install\local\policy\policyname.inf /verbose

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 = 10

MaximumPasswordAge = 30

MinimumPasswordLength = 6

RequireLogonToChangePassword = 0

NewAdministratorName = "NewAdminAccountName"

NewGuestName = "NewGuestAccountName"

Simple to apply from a cmd line

secedit /configure /db %windir%\security\database\localdb.sdb /cfg %systemdrive%\install\local\policy\policyname.inf /verbose

WOAH. Didn't know you could do GP's like that...

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.