Patrick J. LoPresti writes: > Urs Rau <[EMAIL PROTECTED]> writes: > > > What and where would you add the "regedit /s WinXP.reg" command? > > Adding it as a step to be done by the "postinst.bat" appears to be > > "too late". > > Almost anywhere is going to be too late; the workstation joins the > domain during the network configuration part of Windows Setup. I > believe even cmdlines.txt will not run until after Windows is done > installing, so that will not help. >
You could try something like the following: [GuiUnattended] DetachedProgram="%SystemRoot%\regedit.exe" Arguments="/s %SystemRoot%\fixes\fixsamba.reg" The DetachedProgram is probably the earliest place where you can get one of your commands run. At this point very little is installed, and it's way before the network starts. If a reboot is neede between the time you change rehistry and the time you join the domain, this won't work. Also note that at this point no commandline utilities will work, probably because the fonts aren't installed yet. > There might some way to hack the source media to patch the registry... > But a better idea is to join the domain in the post-install scripts, > after the installation finishes. > > You just need a command-line utility to join a domain. I assume there > is one out there somewhere, but since this is Windows XP you could > easily roll your own in Perl using WMI. See: > > http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_computersystem.asp > > In particular, see the JoinDomainOrWorkgroup method. > > The biggest problem is deciding how to obtain/store/delete the > password. > > Another thought: Samba 3.0 was just released, and its domain support > is supposedly much improved. It might obviate the need for any > registry patch. > The easiest way is probably using netdom to join the domain. -- Dag Nummedal ([EMAIL PROTECTED]) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info