To remove or change a domain name for auto sign-in on a domain-joined machine, navigate to the registry editor, and modify the `DefaultDomainName` entry under the `Winlogon` key. You can either clear the value if moving to a workgroup environment or update it to reflect the new domain.