Pretty simple use case:
I am preparing a virtual machine image that will be cloned to create lots of identical copies. I would like the users' desktop to have Dark Mode configured as a standard part of the experience. The users will be local to the VMs, so there is no AD involved here.
I would prepare the image using the following steps:
Install Windows 10 as usual
Go into Audit Mode after reboot to install some standard apps, e.g., Notepad++, etc
Load the NTuser.dat file from C:\Users\Default\ into registry under a temporary location under HKEY_USERS
- Add the 2 dark mode related settings under Software\Microsoft\Windows\CurrentVersion\Themes\Personalize:
AppsUseLightTheme, DWORD, 0
SystemUseLightTheme, DWORD, 0
Unload the temporary hive loaded in step-3
Generalize with CopyProfile and Reboot.
When the system reboots, it gets stuck at a blue "Why did my PC Restart?" screen. If I remove these 2 changes to the Default user registry settings, then I don't run into this problem.
How can I get my image configured so that anyone with a local user account on the VM can get the Dark Mode experience in the cloned images?