Jump to content

Recommended Posts


Posted

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.

Posted

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.

Posted (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=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
Posted

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

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

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

Posted

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

Posted
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

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