Hey there, a bit late, but maybe it helps someone else.
We are using the following script here:
blog.visuafusion.com/Check-Windows11CompatibilityI made that script into a package and then added it into the task sequence after the UEFI disk partitioning.
imgur.com/a/8BIpFFW (Image 1 / 2)
Once you got that in place, use this code in your UI++ XML (pay attention to the condition):
<Action Type="Input" Name="ClientSetupInput" Title="Client Setup" ShowBack="True">
<TextInput Prompt="Computer Name" Hint="Enter the name for this system" RegEx="[^\"/\\\[\]:;\|=,\+\*\?><]{3,15}" Variable="ZZComputerName" Question="Name for this system" Default="%_SMSTSMachineName%"/>
<ChoiceInput Variable="ZZBuildType" Question="Please select the OS for this system" Required="True" Default="Windows11EntCurrent" Condition='"%W11CheckResult%" = "True"'>
<Choice Option="Windows 11 Enterprise" Value="Windows11EntCurrent" />
<Choice Option="Windows 10 Enterprise" Value="Windows10EntCurrent" />
<Choice Option="Windows 10 Enterprise" Value="Windows10EntCurrent" />
<Choice Option="Windows 10 Enterprise LTSC" Value="Windows10EntLTSC" />
</ChoiceInput>
<ChoiceInput Variable="ZZBuildType" Question="Please select the OS for this system" Required="True" Default="Windows10EntCurrent" Condition='"%W11CheckResult%" = "False"'>
<Choice Option="Windows 11 Enterprise (Not supported)" Value="Windows11EntCurrent"/>
<Choice Option="Windows 10 Enterprise" Value="Windows10EntCurrent" />
<Choice Option="Windows 10 Enterprise" Value="Windows10EntCurrent" />
<Choice Option="Windows 10 Enterprise LTSC" Value="Windows10EntLTSC" />
</ChoiceInput>
One last note, you need to have some extra modules activated in your boot image in order to support the Check-Windows11Compatibility script.
It uses a couple of PowerShell modules.
imgur.com/a/8BIpFFW (Image 2 / 2)