gsandan Posted September 13, 2003 Share Posted September 13, 2003 Windows isn't creating a user unattended. Here are my files. (*s used to hide sensitive data)\I386\Winnt.sif;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS OemPreinstall=Yes UnattendSwitch="Yes"[GuiUnattended] AdminPassword=* EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=4 OemSkipWelcome=1[UserData] ProductKey=*****-*****-*****-*****-***** FullName="***** ******" OrgName="" ComputerName=Compaq[Display] BitsPerPel=32 Xresolution=1024 YResolution=768[TapiLocation] CountryCode=1 Dialing=Tone AreaCode=818[RegionalSettings] LanguageGroup=2,1[Identification] JoinWorkgroup=Home[Networking] InstallDefaultComponents=Yes[Components] msmsgs=off msnexplr=off freecell=off hearts=off minesweeper=off pinball=off solitaire=off spider=off zonegames=off AccessOpt=off fp_extensions=off media_clips=off rec=off[GuiRunOnce] %systemdrive%\install\batch.bat[Shell] DefaultStartPanelOff=yes\$OEM$\cmdlines.txt.\user.cmd\$OEM$\user.cmdCLS@ECHO OFFECHO Adding Default User...net user ***** ****** /addnet localgroup "administrators" User /addECHO.ECHO Applying Root Registry Tweaks...REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.regECHO.EXIT\$OEM$\$1\install\Reg_Root_Tweaks.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"="***** ******""DefaultPassword"="""AutoAdminLogon"="1" Link to comment Share on other sites More sharing options...
GreenMachine Posted September 13, 2003 Share Posted September 13, 2003 The syntax to add the user is correct, asuming that the first set of "sensitive data" is the user name, and the second set is the password. If you have a blank in the user name that would be a problem. Use quotes.Unless you created a user name "User", the command to add the user to the Administrators group cannot work. Should be:NET LOCALGROUP Administrators ***** /ADD(or possibly)NET LOCALGROUP Administrators "***** ******" /ADDThe group (Administrators in this case) does not need quotes if it has no blank in it.Debug it yourself! This is just a batch commad, and as such can be run from a command prompt window. If there is an error, it will indicate it to you. Link to comment Share on other sites More sharing options...
Black Thought Posted September 13, 2003 Share Posted September 13, 2003 Hello everybody[this is my first post here ]In my former Windows XP Super CD, i used to write this :NET USER User Password /ADDNET LOCALGROUP group User /ADDwhere User is the user name, between "" if it is composed of 2 words or more,Password ... follows the same ruleand Group is the user group, such as "administrators"...PS : Excuse-me for my poor english, but it is not my mother tongue so... i've to work on it Link to comment Share on other sites More sharing options...
gsandan Posted September 14, 2003 Author Share Posted September 14, 2003 OK. But will the user be added after the Windows XP setup?EX:Setup is finished. vComputer reboots after setup has finished. vComputer boots into the new user account created. Link to comment Share on other sites More sharing options...
webmedic Posted September 14, 2003 Share Posted September 14, 2003 right here I show you how i do it and it works every time. you even autologin as the user.http://board.MSFN.org/index.php?showtopic=8632 Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 15, 2003 Share Posted September 15, 2003 Does this create two user accounts with the same username? One is created in the user.cmd and then later create another same user account that is specified in the[userData]ProductKey=removedFullName="Sky"OrgName="Home"ComputerName=Skyee-Kenneth Link to comment Share on other sites More sharing options...
GreenMachine Posted September 15, 2003 Share Posted September 15, 2003 The UserData section of WINNT.SIF specifies the Registered User Information, not a Windows User Account, thus the code above does not create an account. Furthermore, it is impossible to create 2 accounts with the same name. Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 15, 2003 Share Posted September 15, 2003 I see... The reason that I'm asking is because last night, when I do my first test on my unattended file, I notice in the user profile folder, there is two user accounts called Sky and Sky.Sky profile is created. In my unattended file, I specified UnattendSwitch="Yes" instead of UnattendSwitch="No". Also, I'm not using the cmd.txt that you guys suggested yet on my first test. The only reason that I could come up with is that the user account was created automatically the UserData section and then tring to create the same Sky in Welcome Screen that I inputted and didn't prompt me any error but instead created Sky.Sky.More testings to come...-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