How Can I Switch Unattend.xml Files Based on RAID Status During Windows Setup?

0
7
Asked By TechGuru99 On

Hi everyone! I'm working on streamlining my system deployments and need some advice. I'm trying to set up my unattended Windows installer so that it can automatically switch between two different unattend.xml files before the installation begins. Ideally, I'd like it to use Unattend_A.xml if RAID is active, and Unattend_B.xml when RAID is inactive (like when using AHCI, NVME, or SCSI). I've attempted to modify startnet.cmd to point to a batch script that detects the RAID status and copies the correct unattend file to the root directory, but it's not working. I've stored my unattend files in a folder within the installer root. Can anyone help me figure out how to get this working? I've spent hours researching without success. Thanks!

3 Answers

Answered By ScriptingSally On

So, if I understood you right, you're looking to dynamically select which unattend.xml file to use based on the RAID status during the WinPE phase, right? Are you specifically referring to autounattend.xml?

QuestionAuthor -

Yes, that's exactly what I'm trying to do!

Answered By HelpfulHarry On

If you don't strictly need RAID for your devices, you might want to consider switching the SATA controller in the BIOS to AHCI. It’s probably a simpler solution than trying to script this whole process.

QuestionAuthor -

For my current fleet, changing the SATA settings would be a bit inefficient. I need to stick with RAID for various reasons.

Answered By DriverDude88 On

What specific differences does the unattend.xml have related to RAID? Have you considered just adding the RAID driver to your image and keeping the unattend file unchanged?

QuestionAuthor -

The only difference I noticed is that when RAID is active, diskid is set to 1; if not, it’s 0. That's really the only distinction.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.