How to Set the Administrator Password During Unattended Setup

Last reviewed: February 4, 1998
Article ID: Q158484
The information in this article applies to:
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SUMMARY

When you run an unattended setup of Windows NT 4.0, you can specify the machine administrator password or leave it blank. The password is ordinarily set during GUI mode and is controlled by the following key:

   OemBlankAdminPassword = %value%

with 0 meaning no and 1 meaning yes. This article describes how to set this password automatically for each computer you install.

MORE INFORMATION

To set the local administrator’s password, complete the following steps in your I386 share point:

  1. Create a $oem$ folder in you I386 folder.

  2. Use Edit to create a Cmdlines.txt file with the following contents:

          [commands]
          ".\net user administrator <Password>"
    

  3. Place a copy of the Net.exe file in the $oem$ folder.

  4. In your Unattend.txt file, make sure the Oempreinstall value is set to Yes.

  5. Run an unattended setup for Windows NT 4.0.


Additional query words: 4.00 change password automate unattend.txt
unattend
Keywords : nthowto ntsetup NTSrvWkst kbsetup kbfaq
Version : 4.0
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: February 4, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.