Jump to content

Anyone got cmdlines.txt working with SYSPREP?


Recommended Posts

im trying to get cmdlines.txt working with sysprep but its not working... here is what I have so far.

sysprep.inf

;SetupMgrTag

[unattended]OemSkipEula=Yes

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=85

OemSkipWelcome=1

[userData]

ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

FullName="Test"

OrgName="Work"

[TapiLocation]

CountryCode=44

AreaCode=01753

[identification]

JoinDomain=test

[Networking]

InstallDefaultComponents=Yes

[unattended]

TargetPath=c:\WINDOWS

InstallFilesPath = "C:\sysprep\i386"

[RegionalSettings]

LanguageGroup=1

Language=00000809

[setupMgr]

DistFolder="C:\sysprep\i386"

[branding]

BrandIEUsingUnattended=Yes

[Proxy]

Proxy_Enable=0

Use_Same_Proxy=0

I have create a folder I386 in sysprep which containins the $OEM$ folder which holds tyhe cmdlines.txt a reg file & a runonceEX.cmd file. cmdlines points to the reg file to set autologin details & then the runonceEX.cmd file writes entries ready to install software on the reboot. none of the reg file & runonce entriesd are being written to the registry so cmdlines.txt cant be running. The cmdlines.txt & associated files work on my ris installs from the distribution folder but dosent from sysprep.

Can anyone help.?

I run sysprep.exe select min setup, reboot then reseal.

Link to comment
Share on other sites


Ive added OemPreinstall=Yes but it still dosent work..

any more ideas..? this is my sif file now..

;SetupMgrTag

[unattended]OemSkipEula=Yes

TargetPath="%WINDIR%"

OemPreinstall=Yes

InstallFilesPath ="%SYSTEMDRIVE%\sysprep\i386"

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=85

OemSkipWelcome=1

[userData]

ProductID=

FullName=

OrgName=

[TapiLocation]

CountryCode=44

AreaCode=01753

[identification]

JoinDomain=test

[Networking]

InstallDefaultComponents=Yes

[RegionalSettings]

LanguageGroup=1

Language=00000809

[branding]

BrandIEUsingUnattended=Yes

[Proxy]

Proxy_Enable=0

Use_Same_Proxy=0

Edited by chiners_68
Link to comment
Share on other sites

Here is my sysprep.inf file. Inside the sysprep folder I have an i386 folder, which contains $oem$, which has cmdlines.txt and the CMD file that are called from it, and a couple of folders for hardware specific drivers or drivers that don't play well with certain systems.

;SetupMgrTag
[Data]
AutomaticUpdates=Yes

[Unattended]
UnattendMode=FullUnattended
UnattendSwitch=Yes
OemPreinstall=Yes
WaitForReboot=No

OemSkipEula=Yes
TargetPath=\WINDOWS
InstallFilesPath=C:\sysprep\i386
KeepPageFile=0
UpdateInstalledDrivers=Yes
DriverSigningPolicy=Ignore

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
AutoLogon=Yes
AutoLogonCount=5
OEMSkipRegional=1
OEMDuplicatorstring="HII 09/09/2006"
TimeZone=35
OemSkipWelcome=1

[UserData]
ProductID=abcde-fghij-klmno-pqrst-uvwxy
FullName="Main User"
OrgName="IcemanND"
ComputerName=*

[SetupMgr]
DistFolder=C:\sysprep\i386
DistShare=windist

[Display]
BitsPerPel=32
XResolution=1024
YResolution=768

[TapiLocation]
CountryCode=1
Dialing=Tone
AreaCode=574

[Branding]
BrandIEUsingUnattended=Yes

[Proxy]
Proxy_Enable=0
Use_Same_Proxy=0

[GuiRunOnce]
Command0=c:\postghost\finalize.cmd

[Identification]
JoinWorkgroup=BUILD

[Networking]
InstallDefaultComponents=Yes

[Shell]
DefaultStartPanelOff=Yes
DefaultThemesOff=Yes

[Sysprep]
BuildMassStorageSection=yes

[SysprepMassStorage]

Link to comment
Share on other sites

its working now....yippeee..

not sure why its working all of a sudden but I coiped a few lines for the inf file from IcemanND's sif & its working.. i have relocated the i386 folder to c:\ so its not removed when the sysprep folder disapears. The only problem ive got now is im trying to add doamin user to the admin group from my runonceEX which runs at cmdlines.txt but its not working. works fine on my RIS install at this time. I can only put it down to running cmdlines.txt before the mini setup has joined the machine back to the domain.

here is my working sif file

;SetupMgrTag

[unattended]OemPreinstall=Yes

WaitForReboot=No

OemSkipEula=Yes

TargetPath="\windows"

InstallFilesPath ="c:\i386"

[GuiUnattended]

AdminPassword=*

EncryptedAdminPassword=NO

OEMSkipRegional=1

TimeZone=85

OemSkipWelcome=1

[userData]

ProductID=My Key here

FullName="Test"

OrgName="Test"

[setupMgr]

DistFolder=C:\i386

DistShare=windist

[TapiLocation]

CountryCode=44

AreaCode=01753

[identification]

JoinDomain=Test

[Networking]

InstallDefaultComponents=Yes

[RegionalSettings]

LanguageGroup=1

Language=00000809

[branding]

BrandIEUsingUnattended=Yes

[Proxy]

Proxy_Enable=0

Use_Same_Proxy=0

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