WARNING, NOT TESTED - ATTEMPT AT YOUR OWN RISK
I asked ChatGPT:
Is it possible to change the domain name of a Univention Corporate Server domain and automatically have all windows hosts update that information?
This was the result:
Yes, it is possible to change the domain name of a Univention Corporate Server (UCS) domain and automatically have all Windows hosts update that information.
To change the domain name, you can use the
univention-config-registry
command on the UCS domain controller to set the new domain name:bash
univention-config-registry set ucs/server/samba/domainname=newdomain.com
After setting the new domain name, you can then use the
ucr commit
command to apply the changes:bash
ucr commit /etc/samba/smb.conf
To automatically update the domain name on all Windows hosts, you can use the Group Policy Object (GPO) feature in Active Directory to push the new domain name to all domain-joined Windows computers.
Here are the steps to configure a GPO to update the domain name:
- Open the Group Policy Management console on a domain controller.
- Create a new GPO or edit an existing one.
- Navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options.
- Locate the “Domain member: Rename” policy and enable it.
- Enter the new domain name in the “New name” field and click OK.
- Close the Group Policy Management console.
After configuring the GPO, all domain-joined Windows hosts will automatically update their domain name the next time they refresh their Group Policy settings.
I don’t currently have a test environment setup to try out something like this. Would this be a valid method or would it break everything?