WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

NT Native Commands with WinBatch

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Login to NT 3.51/4.0 after Bootup

Keywords: login logon NT password 

Question:

Is there any way to use winbatch compiled program to login and punch password to Win NT 3.51/4.0 station after reboot?

Answer:

Well, I don't think WinBatch can automatically log you in, but there is a way for the machine to log itself in...
The information in this article applies to:

 - Microsoft Windows NT operating system version 3.1
 - Microsoft Windows NT Advanced Server version 3.1
---------------------------------------------------------------------

Windows NT allows you to automate the logon process by storing your
password and other pertinent information in the Registry database.

NOTE: This feature allows other users to start your computer and use
the account you establish to automatically logon. Also, timing
conflicts can occur. For example: If you have several network
transports loaded, enabling automatic logon may make Windows NT
attempt to connect to network resources before the network transports
are completely loaded.

Use the Registry Editor (REGEDT32.EXE) to add your logon information, as
follows:

WARNING: Using Registry Editor incorrectly can cause serious,
system-wide problems that may require you to reinstall Windows NT to
correct them. Microsoft cannot guarantee that any problems resulting
from the use of Registry Editor can be solved. Use this tool at your
own risk.

1. Start REGEDT32.EXE and locate the following Registry subkey:

      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
      \Windows NT\CurrentVersion\Winlogon

2. Establish your domain name, account name, and password, using the
   values you would normally type when logging on. You should assign
   the following values:

      DefaultDomainName
      DefaultUserName
      DefaultPassword
      AutoAdminLogon -> 1

   NOTE: The DefaultPassword value may not exist. If it doesn't, from
   the Edit menu, choose Add Value. In the Value Name field, type:
   "DefaultPassword" (without the quotation marks). Select REG_SZ for
   the Data Type. In the String field, type your password. Save your
   changes.

   Also, if no DefaultPassword string is specified, Windows NT
   automatically changes the value of the AutoAdminLogon key from 1 (true)
   to 0 (false), thus disabling the AutoAdminLogon feature.

3. From the Edit menu, choose Add Value. Enter AutoAdminLogon in the
   Value Name field. Select REG_SZ for the Data Type. Enter 1 in the
   String field. Save your changes.

4. Exit REGEDT32.

5. Exit Windows NT and turn off your computer.

6. Restart your computer and Windows NT. You should be able to logon
   automatically.

Additional reference words: prodnt regedit 3.10 auto login autologon
KBCategory: kbusage
KBSubCategory: ntsecurity
============================================================================

Article ID:   W13650
Filename:   Login to NT after Bootup.txt
File Created: 1999:04:15:16:55:28
Last Updated: 1999:04:15:16:55:28