INFO: How to Set the Administrator Password During Unattended Setup (158484)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows NT Server 4.0
  • Microsoft Windows NT Workstation 4.0

This article was previously published under Q158484

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 = %valu

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.

Modification Type:MinorLast Reviewed:3/22/2005
Keywords:kbinfo kbsetup KB158484