Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When users want to log into one of our servers, the default domain is set to the machine name instead of the organization's domain, which is to say that the domain dropdown shows the machine name in the text part, while the organizational domain does appear in the dropdown (populated by the network, I assume).

I have heard that one may set a default domain to appear instead of the machine name, and I need this to be that way. I expect it's a registry entry, but I have given up finding one which applies.

Can someone please tell me how to do this?

share|improve this question
up vote 5 down vote accepted

The registry location in question is HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName.

A vbscript to set this might look something like this.

Set oShell = WScript.CreateObject("WScript.Shell")
oShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName", "EXAMPLE"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.