I’ve been experimenting with windows 11 IoT enterprise this week. You can disable and uninstall a fair amount of cruft