This batch file can be used to change the default domain name (Log on to). This script is useful when performing computer migrations. The input for this script is a text file which contains all computer names.
If you change the DefaultDomainName and AltDefaultDomainName values, the Log on to filed will populate with this new value. But I have seen many failed instances. The workaround for this issue is to populate the CachePrimaryDomain registry string with your new Domain name.
Usage: Create a text file called computers.txt with all your computer names and update the KERALA domain name in the script with your domain name.