IntelliQ Posted September 17, 2003 Share Posted September 17, 2003 Ive read and re-read and searched all over this board and still am managing to screw up the code to add a user. I did see a few others having problems too and I even saw webmedic's inf template (http://board.MSFN.org/index.php?showtopic=8632), but that .inf thing frankly, just freaks me out. It doesnt look anything like what I started with using the original steps in the tutorial.I just want to add an account named user, and it never works when i test in with vmware. Sorry for what I am sure is to be a redundant newbie problem. This is what I have done:winnt.sif;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemPreinstall=Yes UnattendSwitch="no" WaitForReboot="No" OemSkipEula=Yes[GuiUnattended] AdminPassword=123456789 EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1[UserData] ProductKey=REMOVED FullName="User" OrgName="My Home" ComputerName=Computer$OEM$\cmdlines.txt".\user.cmd"$OEM$\user.cmdCLS@ECHO OFFECHO Adding Default User...net user User /addnet localgroup "administrators" User /addECHO.ECHO Applying Root Registry Tweaks...REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.regECHO.pauseEXIT$OEM$\$1\install\reg_root_tweak.regWindows Registry Editor Version 5.00 ;This will allow you to autologin.;Replace InsertName value with the Username you want to autologin with.;Replace InsertPassword value with the password corresponding to the Username specified.[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="User""DefaultPassword"="""AutoAdminLogon"="1"Can someone help me fix this with what I have here? Link to comment Share on other sites More sharing options...
GreenMachine Posted September 17, 2003 Share Posted September 17, 2003 I see you have a pause at the end of the batch file. Before you press any key, see if there is an error message after the NET commands. You should have either an error, or a "Command Successful" type message. Do tell! Link to comment Share on other sites More sharing options...
IntelliQ Posted September 17, 2003 Author Share Posted September 17, 2003 I see you have a pause at the end of the batch file. Before you press any key, see if there is an error message after the NET commands. You should have either an error, or a "Command Successful" type message. Do tell!I went into the windows xp that i have installed on vmware, and ran a search for user.cmd, and it doesnt find it.When I had run the installation, now that i think of it, i dont remember it ever pausing after executing user.cmd. This would indicate that it never even ran the file. Somewhere, in the chain of batches and commands, user.cmd isnt being called upon. I'll look this over, and re-read through the old posts again. :/ Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 17, 2003 Share Posted September 17, 2003 Copy this code and try it again. Or verify it looks something like this. I replace "User" with "Sky" so you can tell where the username goes. Also, I notice you are missing "[comand]". in the first line of the cmdline.txt.code for the cmdline.txt[COMMANDS]".\tweaks.cmd"".\user.cmd"code for user.cmd@ECHO OFFREM ----------------------------------------------------------------------ECHO Setting Up User Accounts with no password setECHO.ECHO Creating a default User...net user "Sky" /addnet localgroup "Administrators" "Sky" /addECHO.ECHO Applying Root Registry Tweaks...REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.regECHO.EXITThat's all.By the way guys, does it make any difference betweent this two syntax?net user "Sky" /addnet localgroup "Administrators" "Sky" /addnet user "Sky" /addnet localgroup "Administrators" /add "Sky"-Kenneth Link to comment Share on other sites More sharing options...
IntelliQ Posted September 17, 2003 Author Share Posted September 17, 2003 kenneth, i'll try that out when i get home this evening, thanks.also, do you know how this add user thing gets launched?i dont have anything in the GUIRUNONCE which launches any of these files.is one of these files run automatically by windows because of their file names? Link to comment Share on other sites More sharing options...
GreenMachine Posted September 17, 2003 Share Posted September 17, 2003 Good eye, Kenneth, for the missing [COMMANDS] statement: I bet that is it.I would have said that order is important on the NET LOCALGROUP command, but in testing it does not seem to matter.User.cmd lives, and remains, on the CD only, directly in the $OEM$ directory. cmdlines.txt lives there as well, and is "run" automatically if it exists. It may depend on OEMPreInstall, can't remember right now. That will be in the ref.chm file that comes with setupmgr.exe of the deployment kit. (It is in fact parsed, and the commands passed to the command interpreter...) Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 18, 2003 Share Posted September 18, 2003 Welcome... Now I have a question to you guys. this is the code to user.cmd@ECHO OFFREM ----------------------------------------------------------------------ECHO Setting Up User AccountsECHO.ECHO Creating a default user account with no password setnet user "Sky" /addnet localgroup "Administrators" "Sky" /addPAUSEPress any keys to continue...EXITIt created the Sky User Profile after the installation. But I still get this error message. Can someone tell me why I'm getting this and how to correct it? I think I'm getting the syntax mess up or something.The user or group acount specified cannot be found.The user was successfully created but could not be added to the USERS local group. Link to comment Share on other sites More sharing options...
IntelliQ Posted September 20, 2003 Author Share Posted September 20, 2003 Copy this code and try it again. Or verify it looks something like this. I replace "User" with "Sky" so you can tell where the username goes. Also, I notice you are missing "[comand]". in the first line of the cmdline.txt.code for the cmdline.txt[COMMANDS]".\tweaks.cmd"".\user.cmd"code for user.cmd@ECHO OFFREM ----------------------------------------------------------------------ECHO Setting Up User Accounts with no password setECHO.ECHO Creating a default User...net user "Sky" /addnet localgroup "Administrators" "Sky" /addECHO.ECHO Applying Root Registry Tweaks...REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.regECHO.EXITThat's all.By the way guys, does it make any difference betweent this two syntax?net user "Sky" /addnet localgroup "Administrators" "Sky" /addnet user "Sky" /addnet localgroup "Administrators" /add "Sky"-KennethIt worked, however, it isnt doing what I had planned.It's naming the adminstrator account "User", but I still get the screen to add users.What I wanted to do is have it create a user named User and make it have admin privleges.Any ideas? thx. Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 20, 2003 Share Posted September 20, 2003 What you need to do is add this two commands from the above post that I show you.net user "Sky" /addThis will create a new user called Sky.net localgroup "Administrators" "Sky" /addThis will add the user Sky as and Administrator.To remove the Welcome Screen, in the winnt.sif, make sure the UnattendSwitch is set to "Yes" in the [unattended] section. Looks like this.UnattendSwitch="Yes"You can check by going to Control Panel > User Account to verify it after the installation.-Kenneth 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