Setting prefrences during deployment

Is there a way to set preferences for our users at deployment?
I know how to set all these settings via the GUI but doing them for every PC we build manually kind of defeats the purpose of our deployment tooling.

I know of two ways to do that:

  1. Preconfigure a registrymodifications.xcu settings file in the AllUsers directory. This should be taken into account when creating any new account on the PC.
  2. Create and install a dedicated extension that actually sets all the wanted options. This will set that configuration under any account. See here for more information: https://wiki.documentfoundation.org/images/b/b0/LibreOffice_config_extension_writing.pdf

yeah thanks…
i was considering #1 initially, but often our users are already created when we install LO
then I found out about #2 while searching a bit deeper

I think I’ve created a correct .OXT file and I’m testing it out now