Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to change default logon domain name in the logon screen


Author: Yuval Sinay MVP

View products that this article applies to.

Tips

Introduction and Instructions

In multi domain environment, a common mistake of users is to log into different domain then there native domain. To avoid this problem (usually occur during domain migration) there option to configure defualt logon domain by using computer startup script.
 
1. 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
 
2. In the script above, rename "TEST-DOMAIN" to the NETBIOS domain name that will use as default logon domain.
 
3. Add the script DefaultDomainScript.vbs to Default Domain Policy (GPO) as computer startup script.
 
4. Run "GPUPDATE" command on one of the DC's in the domain, and reboot the clients computers.
 
Note: Windows 2000/2003 GPO supported only by Windows 2000 or newer operating systems.

↑ Back to the top


Community solutions content disclaimer

Microsoft corporation and/or its respective suppliers make no representations about the suitability, reliability, or accuracy of the information and related graphics contained herein. All such information and related graphics are provided "as is" without warranty of any kind. Microsoft and/or its respective suppliers hereby disclaim all warranties and conditions with regard to this information and related graphics, including all implied warranties and conditions of merchantability, fitness for a particular purpose, workmanlike effort, title and non-infringement. You specifically agree that in no event shall Microsoft and/or its suppliers be liable for any direct, indirect, punitive, incidental, special, consequential damages or any damages whatsoever including, without limitation, damages for loss of use, data or profits, arising out of or in any way connected with the use of or inability to use the information and related graphics contained herein, whether based on contract, tort, negligence, strict liability or otherwise, even if Microsoft or any of its suppliers has been advised of the possibility of damages.

↑ Back to the top


Keywords: kbpubtypecca, kbpubtypett, kbpubmvp, kbhowto, KB555050

↑ Back to the top

Article Info
Article ID : 555050
Revision : 1
Created on : 4/18/2004
Published on : 4/18/2004
Exists online : False
Views : 451