: Copy all contents of the mounted ISO into a new folder on your drive (e.g., C:\Win11Setup Add Answer File : Place your autounattend.xml directly into this folder. Command Prompt as Administrator , navigate to that folder, and run: setup.exe /unattend:autounattend.xml Virtual Machine (VM) Specific Fixes If you must use the CD/DVD drive in a VM environment: Generation 2 Settings : Ensure your VM is set to Generation 2 Secure Boot
This is the first better solution . Instead of using UnattendedISO, you will use Windows 11’s native ISO mounting engine, but with explicit control over the drive letter (including “CD/DVD 2”). windows 11 cannot connect unattendediso to cd dvd 2 better