Custom autounattend.xml?

tired-it

Member
Here's another thing I've been working on for a while. Hopefully the answer is simpler than I expected. I enabled the autounattend file in NTLite and adjusted the settings how I wanted. Now, the only thing that pops up when I install Windows is the partitioning of the drive. Well... I want that automated too, but I don't have the premium version of NTLite.

So I navigated to the image cache and found the "autounattend.xml" file and opened it up in the Windows System Image Manager and added the options for wiping and partitioning a drive. Would the image in NTLite keep the extra info in the file? If I were to build the ISO, would it have the originally configured settings plus the newly added partitioning sections?

And more importantly, would that work? Can it cause boot issues?
 
WSIM is a fully-featured tool that can write custom unattended files, and is probably better at it than NTLite's Unattended mode. After all, MS wrote it and they also know all the undocumented config settings. The only thing WSIM can't do is NTLite's dynamic host rename, which is just a tiny VBS script that NTLite injects to the image.

If you know WSIM, just copy their unattend.xml to the ISO distribution folder and not bother using NTLite's Unattended. The only thing you would have to check is the InstallFrom value for /IMAGE/INDEX.

I happen to know the XML syntax, so I will copy autounttend.xml from another ISO folder and edit it to do things NTLite currently doesn't support. But the licensed Unattended features are helpful for non-technical users.
 
WSIM is a fully-featured tool that can write custom unattended files, and is probably better at it than NTLite's Unattended mode. After all, MS wrote it and they also know all the undocumented config settings. The only thing WSIM can't do is NTLite's dynamic host rename, which is just a tiny VBS script that NTLite injects to the image.

If you know WSIM, just copy their unattend.xml to the ISO distribution folder and not bother using NTLite's Unattended. The only thing you would have to check is the InstallFrom value for /IMAGE/INDEX.

I happen to know the XML syntax, so I will copy autounttend.xml from another ISO folder and edit it to do things NTLite currently doesn't support. But the licensed Unattended features are helpful for non-technical users.
Interesting, that makes sense. Unfortunately, I'm not well versed with WSIM. I was able to follow a guide to manually add partitioning information to it. I basically copied that section from the XML file and added it to the one in the NTLite cache. I assume that won't be enough would it?

For my InstallFrom value, this is what I have
Code:
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/INDEX</Key>
<Value>1</Value>
</MetaData>
</InstallFrom>

Note, this is the autounattend.xml file. I understand autounattend and unattend are technically two different things? Should I stick to just unattend in this case?
 
Answer files is the generic name for all unattend.xml files.

When installed to the ISO's root folder, it's renamed autounattend.xml and applies to all images. But it's unattend.xml if found in other ISO or distribution share folders. There is a long search order that Setup follows to know which answer file applies in different scenarios.

For normal imaging, copy this file as autounattend.xml to the ISO root folder. Don't copy the file anywhere else or it doesn't work.

The image index corresponds to your WIM's list of included image. For a single edition WIM, it's trivially index 1. When this value is empty, Setup will prompt you at install time to pick an image.
 
Answer files is the generic name for all unattend.xml files.

When installed to the ISO's root folder, it's renamed autounattend.xml and applies to all images. But it's unattend.xml if found in other ISO or distribution share folders. There is a long search order that Setup follows to know which answer file applies in different scenarios.

For normal imaging, copy this file as autounattend.xml to the ISO root folder. Don't copy the file anywhere else or it doesn't work.

The image index corresponds to your WIM's list of included image. For a single edition WIM, it's trivially index 1. When this value is empty, Setup will prompt you at install time to pick an image.
That makes sense, it matches what I've been reading too. Looks like the ISO booted from a flash drive just fine and successfully completed the installation. Unfortunately, the auto-partitioning did not seem to work. Ah well, I'll keep looking there.
 
Back
Top