Applies To:
  • CitectSCADA 4.x, 5.x

Summary:
KB article Q2006 refers to changes to the registry in Windows NT 3.51 and 4.0 to skip the normal logon process ( AutoLogon ). At startup, the SHIFT key can be pressed and AutoLogon is bypassed allowing normal logon to be completed. If the user logs on under a different name and or domain, then the next login will be with that name and domain, except with the default password, which will be incorrect and so it will not work. 

Solution:
Windows NT updates the default UserName and DomainName after every login. To override this, the program regini.exe that is part of the NT Resource Kit can be used to update the registry settings at startup, after login is completed.

To ensure that the DefaultUserName value never changes, create an .INI file with the following text:

\Registry\Machine
   Software
      Microsoft
         Windows NT
            CurrentVersion
               Winlogon
                  DefaultUserName = REG_SZ <USERNAME>

where DefaultUserName is the value name specified in the syntax, REG_SZ is the data type ( Registry String ) and Username should be changed to the login name desired. An example would be:

\Registry\Machine
   Software
      Microsoft
         Windows NT
            CurrentVersion
               Winlogon
                  DefaultUserName = REG_SZ WillSmith

To reference the .INI file, create a .BAT or .CMD file containing a command similar to the following example:

   c:\reskit\REGINI c:\<NAMEFILE>.INI

where the name of the .INI file saved is <NAMEFILE>.INI

You must put this .CMD or .BAT file in the Common Startup group to ensure that the DefaultUserName will not change regardless of how many users log on.

If the different domains are available at login, then create another .INI file with the appropriate registry changes:

\Registry\Machine
   Software
      Microsoft
         Windows NT
            CurrentVersion
               Winlogon
                  DefaultDomainName = REG_SZ <DOMAINNAME>

and reference this on the second line of the same .BAT or .CMD file using:

   c:\reskit\REGINI c:\<DOMAINFILE>TEST.INI

 

Keywords:
 

Attachments