Most of these settings are in the registry, but some are actually in a file somewhere. There is a tool called remcapture that helps with this type of thing. You do a baseline dump of the device using the tool, then you manually make the changes to the device (Owner, domain, etc) then capture the differences using the tool. It will build you one or more files to place in the application folder on the device (which is flash, so survives a cold boot) to restore whatever registry settings or files you need.
Latest looks like 2.0