In multi domain environment, a common mistake of users is to log into different domain then there native domain. To avoid this problem there is a option to configure default logon domain by using computer startup script.
Copy the script bellow to text file and name the text file: DefaultDomainScript.vbs
Dim sDomName
Set oWshShell = CreateObject(“WScript.Shell”)
sDomName = “TEST-DOMAIN”
oWshShell.RegWrite “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName”, sDomName
In the script above, rename “TEST-DOMAIN” to the NETBIOS domain name that will use as default logon domain.
Add the script DefaultDomainScript.vbs to Default Domain Policy (GPO) as computer startup script.
Run “GPUPDATE” command on one of the DC’s in the domain, and reboot the clients computers.