The script runs in the context of SYSTEM, not the Admin user.
Which is why in pieterdezwart's solution Remove keyboard layout and set time format during setup, the Default User hive is loaded directly and modified.
Which is why in pieterdezwart's solution Remove keyboard layout and set time format during setup, the Default User hive is loaded directly and modified.