fess Posted April 1, 2005 Share Posted April 1, 2005 Why user is not created during Win installation?This is file cmdlines.txt:[COMMANDS]"users.bat"This is file users.bat:net user Ivan /addnet localgroup Ђ¤¬ЁЁбва в®ал Ivan /addnet accounts /maxpwage:unlimitedREGEDIT /S alogon.regEXITЂ¤¬ЁЁбва в®ал - this is Administrators, writing on Russian.This is file users.bat:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Ivan""DefaultPassword"="""AutoAdminLogon"="1"This is file WINNT.SIF:[Data] Autopartition = 1 MsDosInitiated = 0 UnattendedInstall = Yes[Unattended] UnattendMode = FullUnattended UnattendSwitch = Yes OemPreinstall = Yes OemSkipEula = Yes FileSystem = LeaveAlone WaitForReboot = No TargetPath = Windows DriverSigningPolicy = Ignore NonDriverSigningPolicy = Ignore[Display] Xresolution = 1024 Yresolution = 768 BitsPerPel = 32 Vrefresh = 75[GuiUnattended] AdminPassword = "XXXXX" TimeZone = 145 OEMSkipRegional = 1 OemSkipWelcome = 1 EncryptedAdminPassword=No[UserData] ProductKey = "XXXX-XXXX-XXXX-XXXX-XXXX" ComputerName = MYPC FullName = "MyName" OrgName = "My Home"[RegionalSettings] Language = 0419Where is error?All of this files in folder i386\$OEM$\If I run users.bat in Windows user created correctly. Link to comment Share on other sites More sharing options...
purewaveform Posted April 1, 2005 Share Posted April 1, 2005 try giving ivan a password, and see if it solves the problem.net user Ivan ivan /addthe rest at a glance looks good. Link to comment Share on other sites More sharing options...
tguy Posted April 2, 2005 Share Posted April 2, 2005 Try changing the cmdlines.txt to read:[Commands].\users.batHelps to qualify the path to the batch file. Link to comment Share on other sites More sharing options...
fess Posted April 2, 2005 Author Share Posted April 2, 2005 try giving ivan a password, and see if it solves the problem.It is not work Try changing the cmdlines.txt to read:It is not work either Any other ideas? Link to comment Share on other sites More sharing options...
mmainio Posted April 2, 2005 Share Posted April 2, 2005 If I read this Ђ¤¬ЁЁбва в®ал thing right there seems to be one space...Maybe you should try this way:"Ђ¤¬ЁЁбва в®ал"Another possibility is that batch interpreter doesn't read your language characters in a right way. For example start menu in finnish is käynnistä-valikko and desktop is työpöytä. If i want that this works in batch i have to replace ä-character with ALT+0132 and ö-character with ALT+0147 like below (you can find these by trial/error -method):ä: k„ynnist„-valikko "double low-9 quotation mark" - ALT+0132 ö: ty”p”yt„ (työpöytä) "left double quotation mark" - ALT+0147But you can find out this by writing your batch and putting pauses in there so you can see if your commands had been executed in a right way when batch pauses.Hope this helps,mmainio Link to comment Share on other sites More sharing options...
fess Posted April 2, 2005 Author Share Posted April 2, 2005 "Ђ¤¬ЁЁбва в®ал"It is not work.Another possibility is that batch interpreter doesn't read your language characters in a right way.But if I run this bat-file after WindowsXp has been installed, user create correctly. Is that batch interpreter during Windous installation differ then batch interpreter using in installed Windows or not?But you can find out this by writing your batch and putting pauses in there so you can see if your commands had been executed in a right way when batch pauses.You mean write PAUSE in bat-file? This command work only at installed Windows, during installantion this command is not work. Maybe another commands to make pause in bat-file exists? Link to comment Share on other sites More sharing options...
mmainio Posted April 2, 2005 Share Posted April 2, 2005 If your batch works in windows then it should be okay!But one thing... you have users.bat and then again users.bat - should that last one be users.reg for example?And in cmdlines.txt respectively[COMMANDS]"users.bat""users.reg"And one more thing...I think $OEM$ and i386 folders should be parallel - not i386\%OEM%mmainio Link to comment Share on other sites More sharing options...
fess Posted April 2, 2005 Author Share Posted April 2, 2005 But one thing... you have users.bat and then again users.bat - should that last one be users.reg for example?I mean alogon.reg. I call it from users.bat.I think $OEM$ and i386 folders should be parallel - not i386\%OEM%Thank you mmainio!!! Now all working!!! But it very strange becouse I use some regtweaks running from cmdlines.txt and they work only users creations was not working. But now all works!!! 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