QUOTE (leen2 @ Jun 17 2008, 05:56 PM)

I plan to do this for our unattended installs. We currently do this for Windows 2000 and Windows Server 2003 OS versions for unattend.txt, so I plan to extend it for Windows Server 2008 as well for unattend.xml.
Simple VB code to create a FileSystemObject we use is as follows:
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objNewFile = objFS.CreateTextFile("c:\unattend.xml")
objNewFile.WriteLine "<?xml version=" & chr(34) & "1.0" & chr(34) & " encoding=" & chr(34) & "utf-8" & chr(34) & "?>"
objNewFile.WriteLine "<unattend xmlns=" & chr(34) & "urn:schemas-microsoft-com:unattend" & chr(34) & ">"
objNewFile.WriteLine "< <servicing>"
etc...
objNewFile.Close
(as you can't use the double quote charater directly, you have to substitutue it for " & chr(34) & " in the code so that when it writes out the file it fills in the correct character.)
Just produce and validate your original unattend.xml file in Windows System Image manager from WAIK and then use it as the template for the VBscript to dynamically produce.
Ok.. here is the big question.
First let me describe my process.
I PXE boot to WINPE...
I Partition and format drive...
I Use ImageX to deploy a custom Image (I use
d the Sysprep /OOBE /Generalize /Shutdown switches and then created my image)
I Now I copy my PNP drivers to the drive (unattend.xml has the locations in it)
Now my Unattend.xml is created via scripting and has my regionalization, IP address, pnp driver paths and other information.
What do I do with the file? Does it get rename?
Where does it go so when WInPE rebots and teh host boots up it is used and builds with those settings?
I assume it has to be placed somewhere on the host's hard drive. But where?
I can't find this information anywhere.
Thanks.
Chris