rustycaps Posted July 24, 2004 Share Posted July 24, 2004 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? Link to comment Share on other sites More sharing options...
ml20 Posted July 24, 2004 Share Posted July 24, 2004 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. Link to comment Share on other sites More sharing options...
rustycaps Posted July 25, 2004 Author Share Posted July 25, 2004 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 More sharing options...
squallgreg Posted July 25, 2004 Share Posted July 25, 2004 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now