Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

How do I change the default logon domain name in the logon screen?

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.

Share on Twitter
Share on Facebook