banner

[GuiUnattended] (Sysprep.inf)

Answer File = Sysprep.inf

The [GuiUnattended] section for Sysprep.inf contains entries for preparing the graphical user interface (GUI) for unattended Setup.

For the Unattend.txt version, see [GuiUnattended] (Unattend.txt).

Entry Description
AdminPassword Sets the Administrator account password.
AutoLogon Configures the computer to log on automatically with the Administrator account on the first reboot.
AutoLogonCount Specifies the number of times that the computer automatically logs on using the specified Administrator account and password.
EMSSkipUnattendProcessing Prevents Windows Setup from processing Unattend.txt or Sysprep.inf during an unattended installation to a remotely administered server.
EncryptedAdminPassword Enables Setup to install encrypted passwords for the Administrator account.
OEMDuplicatorString Specifies a description of the duplication utility used, as well as any other information that an OEM or administrator wants to store in the registry.
OEMSkipRegional Specifies whether unattended Setup skips the Regional and Language Options page in GUI-mode Setup and Mini-Setup.
OEMSkipWelcome Specifies whether unattended Setup skips the Welcome page in GUI-mode Setup and Mini-Setup.
TimeZone Specifies the time zone of the computer's location.

Sample

This sample demonstrates one use of the [GuiUnattended] section of Sysprep.inf.

[GuiUnattended]
AdminPassword = "TG33hY"
AutoLogon = Yes
AutoLogonCount = 3
EMSSkipUnattendProcessing = 1
EncryptedAdminPassword = Yes
OEMDuplicatorString = "My Duplication Utility"
OEMSkipRegional = 1
OEMSkipWelcome = 1
TimeZone = 030

AdminPassword

Sets the Administrator account password.

Syntax AdminPassword = password
Values "password"

The password may contain as many as 127 characters. Passwords are case-sensitive and must be enclosed in quotes. Users cannot change or specify their own passwords in Mini-Setup. You can enter a new password in the appropriate dialog box, but the password does not change.

*

The Administrator password is blank or NULL.

Example
AdminPassword = "TG33hY"
Registry subkey HKEY_LOCAL_MACHINE\Software\Microsoft\
    Windows\CurrentVersion\WinLogon\DefaultPassword
Dependencies If AdminPassword is set to blank, null, or not set, the registry subkey HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\
CurrentVersion\WinLogon\AutoAdminLogon
(controlled by AutoLogon) is set to 0 (false) which disables the automatic Administrator account logon feature.
Comments

If you specify a password in the Administrator account, you cannot use the AdminPassword entry in the Sysprep.inf file to change it. The Administrator password remains the same. However, if the Administrator password was initially blank (either manually or through an unattended Setup), you can use the AdminPassword entry to change it to a non-blank password.

Important

  • Do not specify the Administrator password in the Sysprep.inf file on computers delivered to end users. Security breaches can occur if you use a common, non-blank Administrator password for all computers provided to end users. Before running Sysprep, we recommend that you use an automation process to set the Administrator password to blank. End users can then specify their own passwords when they receive the computer.

icon Return to top

AutoLogon

Configures the computer to log on automatically with the Administrator account on the first reboot.

Syntax AutoLogon = Yes | No
Values Yes

Configures the computer to log on automatically with the Administrator account on the first reboot.

No

Default. Does not automatically log on to the computer.

Example
AutoLogon = Yes
Registry subkey HKEY_LOCAL_MACHINE\Software\Microsoft\
    Windows NT\CurrentVersion\WinLogon\AutoAdminLogon
Dependencies If AdminPassword is set to blank, null, or not set, the registry subkey HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\
CurrentVersion\WinLogon\AutoAdminLogon
(controlled by AutoLogon) is set to 0 (false) which disables the automatic Administrator account logon feature.
Comments

The entry is not valid on upgrades.

When you set the value of the AutoLogon entry to Yes, you cannot log off. If you try to log off, you will be logged back on automatically. The only way to log off is to reboot, which decrements the value of AutoLogonCount.

If you specify a password by using the AdminPassword entry, the computer uses that password when you automatically log on. After the installation finishes, Setup deletes the password from the copy of the answer file left on the computer.

icon Return to top

AutoLogonCount

Specifies the number of times that the computer automatically logs on using the specified Administrator account and password.

Syntax AutoLogonCount = integer
Value integer
Example
AutoLogonCount = 3
Registry subkey HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
    CurrentVersion\WinLogon\AutoLogonCount
Comments

The value decrements after each time someone logs on, and WinLogon disables the feature after the specified number of logon attempts.

Requires AutoLogon = Yes and AdminPassword = password in Sysprep.inf. If AutoLogon = Yes, WinLogon checks the value of AutoLogonCount. If the number for AutoLogonCount is greater than 0, WinLogon decrements the count and then checks AdminPassword. If AdminPassword = password, WinLogon uses this password to log on automatically. If AdminPassword = *, the user must enter a password.

If AutoLogonCount = 0, then WinLogon deletes AutoAdminLogon, AutoLogonCount, and DefaultPassword from the registry. During the next reboot, the user must log on manually.

Important

  • The function of this entry has changed slightly between Microsoft® Windows® 2000 and Windows XP. Please review this entry carefully before using it in your answer file.
  • Make sure that the password for the master installation (that you plan to duplicate onto one or more destination computers) is blank.
  • You must restart the computer to decrement the value of AutoLogonCount.

icon Return to top

EMSSkipUnattendProcessing

Prevents Windows Setup from processing Unattend.txt or Sysprep.inf during an unattended installation to a remotely administered server.

Syntax EMSSkipUnattendProcessing = 0 | 1
Values 0

Does not prevent Windows Setup from processing Unattend.txt or Sysprep.inf during an unattended installation to a remotely administered server.

1

Prevents Windows Setup from processing Unattend.txt or Sysprep.inf during an unattended installation to a remotely administered server.

Default Value 0
Example
EMSSkipUnattendProcessing = 0
Comments Applies only to the Windows Server 2003 family.

icon Return to top

EncryptedAdminPassword

Enables Setup to install encrypted passwords for the Administrator account.

Syntax EncryptedAdminPassword = Yes | No
Values Yes

Instructs Setup to install the encrypted Administrator account password.

No

Default. Instructs Setup to keep the Administrator account password as clean text.

Example
EncryptedAdminPassword = Yes
Comments

To encrypt your Administrator passwords, use Setup Manager on the Windows OPK CD (in Tools) and in Deploy.cab.

Important

  • If you use this key to install an encrypted Administrator password during an unattended installation, Setup disables Autologon.

icon Return to top

OEMDuplicatorString

Specifies a description of the duplication utility used, as well as any other information that an OEM or administrator wants to store in the registry.

Syntax OEMDuplicatorString = string
Value user-defined_string

Valid only for Sysprep.inf. The value can have a maximum of 255 characters.

Example
OEMDuplicatorString = "My Duplication Utility"
Registry subkey HKEY_LOCAL_MACHINE\System\Setup\OemDuplicatorString

icon Return to top

OEMSkipRegional

Specifies whether unattended Setup skips the Regional and Language Options page in GUI-mode Setup and Mini-Setup.

Syntax OEMSkipRegional = 0 | 1
Values 0

Displays the Regional and Language Options page in GUI-mode Setup and Mini-Setup.

1

Skips the Regional and Language Options page in GUI-mode Setup and Mini-Setup.

Example
OEMSkipRegional = 1
Comments

When providing values for the [RegionalSettings] section, set OEMSkipRegional = 1 to ensure that Setup completes without prompting the end user for regional information.

icon Return to top

OEMSkipWelcome

Specifies whether unattended Setup skips the Welcome page in GUI-mode Setup and Mini-Setup.

Syntax OEMSkipWelcome = 0 | 1
Values 0

Displays the Welcome page in GUI-mode Setup and Mini-Setup.

1

Skips the Welcome page in GUI-mode Setup and Mini-Setup.

Example
OEMSkipWelcome = 1
Comments

If OemPreinstall = Yes, unattended Setup automatically stops at the Welcome page. To avoid this pause in your factory or testing environment, set OEMSkipWelcome = 1. However, do not distribute any computer with OEMSkipWelcome = 1.

If the value of the OemPreinstall entry in the [Unattended] section of Unattend.txt is set to Yes, unattended Setup automatically stops at the Welcome page. To avoid this pause in your factory or testing environment, set the value of OEMSkipWelcome in the [GuiUnattended] section of Sysprep.inf to 1. However, do not deliver any computer with OEMSkipWelcome = 1. Instead, change OEMSkipWelcome to 0 in the Sysprep.inf file that you use before delivering the computer to the customer.

icon Return to top

TimeZone

Specifies the time zone of the computer's location.

Syntax TimeZone = index
Value index
Example
TimeZone = 030
Comments

If the entry is not present, the end user must select a time zone. For a list of valid time zones, see TimeZone in Unattend.txt.

Note

  • If you do not configure a specific time zone setting, the default time zone depends on the language version of Windows that is installed. For example, in the Japanese version, the default time zone is "GMT+9 (Osaka, Sapporo, Tokyo)."

icon Return to top