Jump to content

cmdlines.txt


Recommended Posts

The $OEM$ folder gets copies but the cmdlines.txt does not run?

[COMMANDS]

"net user test /add"

"net localgroup Administrators test /add"

"net accounts /maxpwage:unlimited"

;SetupMgrTag

[Data]

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

WaitForReboot=No

DriverSigningPolicy=Ignore

TargetPath=\WINDOWS

UnattendSwitch="yes"

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=35

OemSkipWelcome=1

[branding]

BrandIEUsingUnattended=Yes

[GuiRunOnce]

Command0="cmd /c md %systemdrive%\temp"

; Command1="%systemdrive%\install\install.bat"

; Command2="net user test test /add"

; Command3="regedit /e %systemdrive%\temp\install_reg.txt"

[identification]

JoinWorkgroup=WORKGROUP

[components]

msmsgs=off

zonegames=off

[Proxy]

Proxy_Enable=0

Use_Same_Proxy=0

[Networking]

InstallDefaultComponents=Yes

[Display]

BitsPerPel=24

Xresolution=800

YResolution=600

Link to comment
Share on other sites


hi,

first thing is to put all commands in cmdlines.txt in a seperate batch you call from cmdlines.txt like this:

[COMMANDS]
".\prepare.cmd"

prepare.cmd:

cmdow @ /HID
start /wait net user test /add
start /wait net localgroup Administrators test /add
start /wait net accounts /maxpwage:unlimited
EXIT

hope this helps a bit

cya

Killer Bee

Link to comment
Share on other sites

I know for a fact that you did a lot wrong in this file. I'm no expert on this but my file was I lot different

What is so wrong with his files? I can't see anything wrong with them...

I agree with Bee though, it's a lot easier to call batch files from cmdlines.txt, although it shouldn't have caused yours to not work (there is no limitation of cmdlines.txt that states you cannot run dos commands, you can even use rundll inf installation via cmdlines.txt, without putting the commands into a batch file)

be sure you have placed your cmdlines.txt in <CDROOT>\$OEM$ folder...

maybe try logging the commands to see if they are actually running but with errors, try this:

[COMMANDS]
"net user test /add >%systemdrive%\cmdlines.log"
"net localgroup Administrators test /add >>%systemdrive%\cmdlines.log"
"net accounts /maxpwage:unlimited >>%systemdrive%\cmdlines.log"

Link to comment
Share on other sites

i really don't see what he did wrong. True the batch files would be better however. The Winnt.sif looks fine. It's all about what HE wants his install to do.

But, it could be that NET is not in the path that CMDLINES.TXT operates under. A batch file called from CMDLINES.TXT has different functionality then CMDLINES.TXT itself as the batchfile acutally initializes an environment and whatnot.

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...