Jump to content

cmdlines.txt in a sysprep image


Recommended Posts

Hi everyone, i'm having a dickens of a time getting cmdlines.txt to work.

Let me start by saying that I am working on a master image for the school district I work for. We run novell servers, so we use zenimg to create and push down images. I made a nice clean image, and sysprep -resealed it. I then used zenimg to push the image up to our storage server. I then realized that I would want to use cmdlines.txt to do some stuff. I used the zenworks image explorer to add the cmdlines.txt file and to update the sysprep.inf with the appropriate InstallFilesPath. Everything looks ok to me, but it isn't working at all (it doesnt even appear to be touching the cmdlines.txt!)

Please see the attached pic for a rundown of the file structure... Notice the two $oem$ folders. I had read conflicting reports of where your $oem$ folder should be, so i made two of them, both containing the same files.

My cmdlines.txt is as follows

[COMMANDS]

"DriverInstall.bat"

DriverInstall.bat is located at the root of both $oem$ folders and contains the following

echo "omg! we are in cmdlines.txt - The one located at *the path it's at*!!!"

c:\windows\system32\cscript.exe c:\sysprep\DriverInstalls.vbs

pause

and then the DriverInstalls.vbs is just a vbs file to do some junk, not really important since I never even hit my cmdlines.txt.

oh, and my sysprep.inf is as follows

;SetupMgrTag

[unattended]

OemSkipEula=Yes

InstallFilesPath=C:\sysprep\i386

UpdateInstalledDrivers=1

DriverSigningPolicy=Ignore

TargetPath=\WINDOWS

OemPnpDriversPath=drivers\audio;drivers\chipse;drivers\modem;drivers\nic;drivers\other;drivers\video;drivers\wlan

OemPreinstall=Yes

[GuiUnattended]

AdminPassword=myencryptedadminpassword

EncryptedAdminPassword=Yes

OEMSkipRegional=1

TimeZone=20

OemSkipWelcome=1

[userData]

ProductKey=myproductkey

FullName="admin"

OrgName="MASD"

ComputerName=*

[setupMgr]

DistFolder=C:\sysprep\i386

DistShare=windist

[Display]

BitsPerPel=32

Xresolution=1024

YResolution=768

[identification]

JoinWorkgroup=MASD

[Networking]

InstallDefaultComponents=Yes

[sysprepMassStorage]

*a whole TON of storage devices, which i have removed to make the post more readable*

So my question is, do i need to start from scratch and put in all this stuff and THEN reseal the box? (i know that some values are read from sysprep.inf and written into the registry when a machine is resealed... any help would be greatly appreciated!

Taylor

post-95889-1178203844_thumb.jpg

Link to comment
Share on other sites


http://support.microsoft.com/kb/238955

that is one of the pieces of documentation I have read.

*d'oh*

didn't ask what version of Windows you are using. I supposed latest stable version, so I looked in the Windows Deployment Tools Reference for XP SP2.

So you are using Windows 2000 I suppose, after looking at the products that article applies to.

Link to comment
Share on other sites

hrm... I have that deploy cab, and when i look in ref.chm I find this

To run Cmdlines.txt during Mini-Setup

In the distribution folder, create:

%SYSTEMDRIVE%\Sysprep\i386\$OEM$

Copy Cmdlines.txt to the %SYSTEMDRIVE%\Sysprep\i386\$OEM$ folder.

In Sysprep.inf, add:

[unattended]

InstallFilesPath = C:\Sysprep\i386

Run Sysprep.

Either way, I have tried it with the cmdlines.txt in both $oem$'s and at the root of the sysprep folder, and none have worked.

I'm stumped!

I found this how-to, and it seems like i'm doing everything right... i'm boggled!

http://www.geocities.com/kilian0072002/sysprep/sysprep.html

:(

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