July 24, 200422 yr 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 toonet user rustynet Pa55w0rd /addnet localgroup Administrators rustynet /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITAutologon.regWindows 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?
July 24, 200422 yr this is what mine looks like and it works smooth. i run it from cmdlines @ t-13i 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" /ADDNET ACCOUNTS /MAXPWAGE:UNLIMITEDhope you figure it out.
July 25, 200422 yr Author 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.
July 25, 200422 yr That's what I use in a batch file launched by cmdlines.txt :SET USER=Squallnet user %USER% "" /addnet localgroup administrators "%USER%" /addreg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%USER%" /freg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "" /freg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f
Create an account or sign in to comment