You may want to look at what information is available in the miniscan. Before beginning provisioning, a mini scan is run from the WinPE environment, and sometimes that can contain the model information. If it does, then that information (for the new or previously removed device) will be in the inventory, and you can use the If/Else. You might also consider changing the If/Else logic to something like "If it is a supported model, then continue, else (including blank) then quit".
Thanks Tanner. Unfortunately, I tested this with one of our standard models and all we get with a mini scan is the serial number.
With LDMS2016 the boot.wim has powershell included and you can run a prerequisite powershell script in WINPE to return the manufacture or board name and then return that to a popup or possibly return that to provisioning template to run. Might take a little work but definitely possible.
The following may help you out as well - Switches to launch a miniscan and send additional data - !
In essence "run script to detect what you want to detect => Send Inventory Custom Data to Core" (important - you MUST have permitted the relevant data bit as per - Custom Data is not Entered - Using the Unknown Items Inventory Tool - ... and then you should be able to query it.
You could (to make it easier) just do a custom bit of data saying "Windows 10 Migrateable = Yes/No" for instance, but you can make it as simple or as complicated as you prefer (obviously access to WMI gets "interesting" inside the WinPE image, but depending on what your particular criteria are, you may luck out) .
If you're on 9.5 or older (you shouldn't, but just in case) - you can do the same via miniscan.exe as per here - Sending Custom Data with a Miniscan - hope that helps?
Sorry for the delay, I was cleaning up my script. I call this script, which is complied using Auto-It. Hopefully I didn't break it cleaning out some of the other customization, but this should work for you. Do me a favor though, if you use and improve it, please post your improvements.
Thanks Rick. I'll check out the script and let you know how it goes....Appreciate it!
Here the WMI query who return the model:
wmic csproduct get name
With a script that compares this result to a txt file on your server, the thing should be possible with some programming. Maybe ?