New Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

From the cmdlet description, you need to reboot the system: "Changes take effect after the computer is restarted". https://learn.microsoft.com/en-us/powershell/module/international/set-winsystemlocale?view=windowsserver2022-ps .

I suggest creating the image with the desired locale / language beforehand, if possible, otherwise you might require to add an extra reboot step. I suppose you already have installed the French variant from the begining?

Also, if you need a reboot and want to control the reboot from the local script, you can leverage the special exit codes (you need to make the local script idempotent in the sense that the local script code to request a reboot only if the local is not set to the desired one).

https://cloudbase-init.readthedocs.io/en/latest/tutorial.html#file-execution .

Thank you,
Adrian Vladu