Changing Default Administrator Password During Unattended Setup

Last reviewed: March 18, 1997
Article ID: Q153197
The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1
  • Microsoft Windows NT Workstation versions 3.5 and 3.51
  • Microsoft Windows NT Server versions 3.5 and 3.51

The default password for the Administrator account created during Unattended Setup is "" (blank). Changing the default password requires modification of a Windows NT Setup file, Initial.inf.

  1. To make the necessary modifications, copy the I386 directory from the Windows NT compact disc to a hard disk drive.

    WARNING: Modification of Setup files can cause serious, system-wide problems before and after Setup and may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the modification of Setup files can be solved. Make Setup file modifications at your own risk.

  2. Copy i386\System32\Initial.inf to Initial.bak.

  3. Modify i386\System32\Initial.inf:

;;; Setting the below variable to YES forces NTFS Conversion
        ifstr(i) $(STF_GUI_UNATTENDED) == YES
            set !STF_ADMIN_PASSWORD = "<MYPASSWORD>"
        else
            shell "" DoAdminAccountSetup
            ifstr(i) $($R0) == STATUS_SUCCESSFUL
                set !STF_ADMIN_PASSWORD = $($R1)
            else
                set !STF_ADMIN_PASSWORD = ""
            endif
        endif

   NOTE: Replace <MYPASSWORD> with your desired password.

  • Save Initial.inf and close the file.

  • Run Unattended Setup.


  • Additional query words: prodnt unattend admin user
    Keywords : kbsetup nthowto ntreskit ntsetup NTSrvWkst
    Version : 3.1 3.5 3.51
    Platform : WinNT
    Issue type : kbhowto


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: March 18, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.