Windows 11 22H2 Issues in Audit Mode After Generalize
In Win 11 22H2, if we use Sysprep to reseal to Audit Mode and choose the Generalize option, after the reseal, we encounter multiple Store App related error messages. The system is not connected to the internet and no apps have been installed. These errors appear to be related to built-in apps, like Cortana and Notepad. Also, script files will not run. We have several .bat scripts that are set to run upon first boot into Audit that no longer trigger and cannot even be manually run.
If you then reseal to OOBE, the new user does not have these issues. No app errors, and scripts run fine.
Also, if you reseal to Audit without the Generalize option, the only app that has error on boot is Cortana, but it is a different error and resolves itself after a reboot. Our scripts run without issue.
This was not an issue in the previous image based on Windows 11 Version 10.0.22000 (22000.318).
It appears that Generalize is removing all appx apps from the Administrator account (which is probably intended), but it is not restoring them when returning to Audit mode, causing a ton of issues.
All of this means that we cannot Generalize our 22H2 gold image, as we have scripts that must run when booting into Audit Mode. Note that we have been using this process since Windows 7.
A workaround might be to not Generalize the gold image and instead Generalize when we reseal to OOBE with a "persist devices" setting in an unattend, but that switch-over is going to require a lot of testing to ensure it behaves correctly. I would rather not upend our entire process.
Has anyone else tried Sysprep to Audit with the Generalize option in 22H2? Is this a known issue or intended behavior?