Jump to content

Recommended Posts

Posted

Ok, I got my cd working except it does not install my users nor my reg tweaks using the cmdlines.txt

WINNT.SIF:

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[Unattended]
   FileSystem=*
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   TargetPath=\WINDOWS
   OemPnPDriversPath="drivers\LP_UB\Si3114r;drivers\000_GART;drivers\001_MemCtl;drivers\002_IDE;drivers\003_SMBus;drivers\004_AudioDrv;drivers\005_AudioUtl;drivers\006_USB;drivers\007_Display;drivers\008_Ethernet;drivers\009_graphics"
   DriverSigningPolicy=Ignore

[GuiUnattended]
   AdminPassword="<password>"
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=85
   OemSkipWelcome=1

[UserData]
   ProductKey=<product key>
   FullName=<name>
   OrgName="N/a"
   ComputerName=Bedcomp

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=75

[TapiLocation]
   CountryCode=44
   AreaCode=01527

[Components]
  msmsgs=off
  msnexplr=off
  freecell=off
  hearts=off
  minesweeper=off
  pinball=off
  solitaire=off
  spider=off
  zonegames=off

[RegionalSettings]
   LanguageGroup=1
   SystemLocale=00000809
   UserLocale=00000809
   InputLocale=0809:00000809

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes

Paths:

D:\XPCD\$OEM$\cmdlines.txt
D:\XPCD\$OEM$\useraccounts.cmd
D:\XPCD\$OEM$\autologon.reg
D:\XPCD\$OEM$regtweaks.reg

cmdlines.txt:

[COMMANDS]
"useraccounts.cmd"
"REGEDIT /S regtweaks.reg"

useraccounts.cmd:

net user <user> <password> /add
net localgroup Administrators <user> /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

autologon.reg:

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="<user>"
"DefaultPassword"="<password>"
"AutoAdminLogon"="1"

Obviously I wont poast the reg tweaks as its long, although I have edited it to my needs, like is recomended.

So have I missed something? I didnt see no commands being executed during intstall :} and no of the users or tweaks were applied.

Help much appreciated

Mark


Posted

first try with one command.imean

[COMMANDS]

"REGEDIT /S regtweaks.reg"

(working for me)

if it works.then the problem may be in user accounts stff.

Posted

From the looks of your registry file, it appears you may have a blank line at the top of the file. Try removing that so Windows Registry Editor 5.00 is on the top line.

Posted

$OEM$ and I386 are both in the root like they should be, like I said, my drivers and everything install , just not my reg tweaks

@tguy, I think the blank line is just from me posting the code here, I am at college atm so cant check - but I appreciate your help and will also double check that this line does not infact exist at the top of the document.

I was thinking it was maybe a line missing from my WINNT.SIF?

I know cmdlines.txt does not need mentioning in the winnt.sif but

maybe it is because I do not have unattendswitch=yes? or some other command in the winnt.sif?

Thanks again

Posted
useraccounts.cmd:

net user <user> <password> /add
net localgroup Administrators <user> /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

autologon.reg:

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="<user>"
"DefaultPassword"="<password>"
"AutoAdminLogon"="1"

these things.what i want to say is first test ur setup in simple manner imean cmdlines.txt and a regtweak file.if it works then ur remaining settings r ok.then add other user accouts etc.if setup fail in first step only then check ur oem,winnt.... stuff

Posted

Dont ask me why but I got a feeling that adding:

Unattendedswitch=Yes

to the winnt.sif would work, I booted the cd using Virtual Pc first and it seems that it worked, but cant test for real - as forceware 70.02 gets stuck into a loop :blink:

So thanks for everyones help :)

Posted

Is the regtweaks.reg file in the same directory as regedit.exe or in a directory typically specified the PATH statement of a Windows installation? If not, specify the direct path to the regtweaks.reg file in your cmdlines.txt file.

Keep it in quotes to allow for spaces in the path statement to the file.

Posted

The regtweaks.reg file is in the same directory as the batch file, and the path to regedit.exe is specified in the path statement, so that can't be the problem.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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