Jump to content

Problem With User Creation.


Recommended Posts

Why user is not created during Win installation?

This is file cmdlines.txt:

[COMMANDS]
"users.bat"

This is file users.bat:

net user Ivan /add
net localgroup Ђ¤¬Ё­Ёбва в®ал  Ivan /add
net accounts /maxpwage:unlimited
REGEDIT /S alogon.reg
EXIT

Ђ¤¬Ё­Ёбва в®ал - 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 = 0419

Where 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


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+0147

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.

Hope this helps,

mmainio

Link to comment
Share on other sites

"Ђ¤¬Ё­Ёбва в®ал"
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

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

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!!! :thumbup:thumbup

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...