Jump to content

Add user @ T-12 not working properly


Recommended Posts

I have followed the add user and autologon routine over on the unattended site as mentioned at one stage in another topic, but it hasn't worked for me fully - it added the user, but it just didn't add it to the Administrators group.

Here is what I have got to work with so far...

adduser.cmd - changed passwords in next 2 files too

net user rustynet Pa55w0rd /add
net localgroup Administrators rustynet /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

Autologon.reg

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="rustynet"
"DefaultPassword"="Pa55w0rd"
"AutoAdminLogon"="1"

The only thing I can think of is that I still had that NetUser exe file in the \$oem$\system32 directory on the cd, which I used to use to rename the default Admin account, but I'd have thought that it would only work with netuser as one word, and the net user command would be handled by CMD as usual - or am I obviously wrong and that was my problem?

Link to comment
Share on other sites


this is what mine looks like and it works smooth. i run it from cmdlines @ t-13

i don't have a P/W, that is what the blank quotes are.

NET USER "Matt" "" /ADD /COMMENT:"Generated Administrator Account" 
NET LOCALGROUP Administrators "Matt" /ADD
NET ACCOUNTS /MAXPWAGE:UNLIMITED

hope you figure it out. :)

Link to comment
Share on other sites

Is it meant to have the "" around the name, as the Unattended site doesn't show it?

Mine's actually run from cmdlines.txt too, just that I didn't think of that for the topic, though the file only has 2 entries - one which runs the adduser.cmd and another which run a batch to run a reg file to set the source directory, though I don't think it worked as came up with the cd drive source still later.

Link to comment
Share on other sites

That's what I use in a batch file launched by cmdlines.txt :

SET USER=Squall
net user %USER% "" /add
net localgroup administrators "%USER%" /add
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%USER%" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f

Link to comment
Share on other sites

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