Jump to content

Recommended Posts

Posted

I have created an unattended XP CD which has the following information:

Winnt.sif

; Generated by nLite 1.0 beta 5

[Data]
Autopartition = 0
MsDosInitiated = 0
UnattendedInstall = Yes

[Unattended]
UnattendMode = DefaultHide
UnattendSwitch = Yes
OemPreinstall = Yes
OemSkipEula = Yes
FileSystem = *
WaitForReboot = No
NoWaitAfterTextMode = 1
NoWaitAfterGUIMode = 1
TargetPath = Windows
DriverSigningPolicy = Ignore
NonDriverSigningPolicy = Ignore

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

[GuiUnattended]
EncryptedAdminPassword = No
AdminPassword = ""
TimeZone = 110
OEMSkipRegional = 1
OemSkipWelcome = 1

[Components]

[UserData]
ProductKey = ""
FullName = "Merconet"
OrgName = "Merconet"

[RegionalSettings]
Language = 0409

[Networking]
InstallDefaultComponents = Yes

[Identification]
JoinWorkgroup = Workgroup

CMDLINES.TXT

[COMMANDS]
"Startup.cmd"

STARTUP.CMD

@Echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Joining Merconet.be Domain" /f
REG ADD %KEY%\005 /V 1 /D "cmd /c start /wait netdom.exe join %computername% /domain:merconet.be /UserD administrator /PasswordD *"

It looks like it is executed, but the Computer isn't added to the domain, but when I manually execute 'startup.cmd' it is added to the domain as expected


Posted (edited)
@Echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Joining Merconet.be Domain" /f
REG ADD %KEY%\005 /V 1 /D "cmd /c start /wait netdom.exe join %computername% /domain:merconet.be /UserD administrator /PasswordD *"

where is the /f at the end of the line.....

i think it should be like this:

@Echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Joining Merconet.be Domain" /f
REG ADD %KEY%\005 /V 1 /D "cmd /c start /wait netdom.exe join %computername% /domain:merconet.be /UserD administrator /PasswordD *" /f

maybe it will help......

Edited by maniaq
Posted (edited)

I added the /f at the end, but it didn't help anything.

The computer still isn't added to the domain.

Perhaps an alternative for adding a computer to the domain?

Edited by sfonvill
Posted

It's my understanding that network connectivity isn't "guarenteed" during GUIRunOnce. I think I read that at M$ anyway...

Posted (edited)

I changed it to just the netdom part at RunOnceEx, but then nothing happens, just a cmd box with a blinking cursor which exits after a few seconds.

Adding it in winnt.sif isn't an option, since we frequently change the password and this way it becomes more flexible

Edited by sfonvill
  • 1 month later...
Posted

Do you have netdom.exe on your system? it is not default in winXP SP2.

Download Windows XP Service Pack 2 Support Tools end copy netdom.exe to system32 end tray it

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