系统准备工具 (Sysprep) 脚本文件密钥

文章翻译 文章翻译
文章编号: 196667 - 查看本文应用于的产品
展开全部 | 关闭全部

本文内容

概要

您在使用 Microsoft 系统准备 (Sysprep) 工具时向导运行在下次启动计算机时,该工具准备计算机,并将图像复制到计算机之后。您可以通过创建脚本文件自动执行此过程。若要使用的脚本文件 Sysprep,使用以下语法

<filename>sysprep.exe

其中 <filename>是脚本文件的名称。

请注意该脚本文件必须包含一个名为 [NT4Preinstall] 的部分。

更多信息

脚本文件密钥

在 Sysprep 脚本文件中,您可以使用下列键:
Key name:    OemSkipEula
Values:      Yes | No
Description: This key disables the display of the End User License 
             Agreement (EULA) when the value is set to Yes. The default 
             value is No.

Key name:    ProductID 
Value:       xxx-xxxxxxx OR xxxxx-OEM-xxxxxx-xxxxx
Description: This key specifies whether the Product ID screen should be 
             displayed. The Product ID key is displayed by default.

Key name:    FullName
Value:       <string>
Description: This key specifies the user's name. If this key is not 
             specified or the string value is blank, the User Name And 
             Organization screen is displayed.

Key name:    OrgName
Value:       <string>
Description: This key specifies the user's organization or company name. 
             If this key is not specified or the string value is blank, 
             the User Name And Organization screen is displayed, unless 
             the FullName key is specified with a valid string value.

Key name:    ComputerName
Values:      <string> | "Auto"
Description: This key specifies the computer name. If this key is not 
             specified or the string value is blank, the Computer Name 
             screen is displayed. The string value must be a minimum of 1 
             non-white-space character and a maximum of 15 non-white-space
             characters.

             If this string value is set to "Auto," Setup automatically 
             generates a unique computer name based on a random number. 
             This provides a mechanism to install multiple computers with
             a unique computer name. 

Key name:    AdminPassword
Value:       <string>
Description: This key specifies the password for the administrator 
             account. If this key is not specified or the string value is 
             blank, the Administrator Password screen is displayed. The 
             string value must be a minimum of 1 non-white-space character
             and a maximum of 15 non-white-space characters. To specify a 
             blank or NULL password use "*".

Key name:    OEMBannerText 
Value:       <text string>
Description: This key specifies a string to be displayed in the upper-left
             corner of the screen. The text must contain the "Windows NT" 
             sub-string or it is ignored. You can specify multiple lines 
             by using the "*" character as a separator.

Key name:    OEMLogoBitmapFile
Values:      <file name> [, <resource id>]
Description: This key specifies a bitmap to be displayed in the upper-
             right corner of the screen. If this key has only one field, 
             it is assumed to be a bitmap (.bmp) file located in the 
             folder in which the System Preparation tool resides. If two 
             fields are specified, the first field is the name of a 
             dynamic-link library (DLL) and the second field is a decimal 
             number that represents the resource ID of the bitmap in the 
             DLL. The DLL should be located in the folder that contains 
             Sysprep.exe.

Key name:    OEMBackgroundBitmapFile
Values:      <file name> [,<resource id>]
Description: This key specifies a background bitmap to display. If this 
             key has only one field, it is assumed to be a bitmap (.bmp) 
             file located in the folder in which Sysprep.exe resides. If 
             two fields are specified, the first field is the name of a 
             dynamic-link library (DLL) and the second field is a decimal 
             number that represents the resource ID of the bitmap in the 
             DLL. The DLL should be located in the folder that contains 
             Sysprep.exe.

Key name:    OEMSkipWelcome
Values:      0 | 1
Description: If this key is set to 1, the Welcome page is skipped. If the 
             key is set to 0, the Welcome page is displayed.

Key name:    OEMNoWaitAfterGUIMode
Values:      0 | 1
Description: If this key is set to 1, the Finished page is not displayed 
             and the computer is automatically restarted when the wizard 
             is finished. If the key is set to 0, the Finished page is 
             displayed and the computer does not automatically restart.

Key name:    NoSidGen
Value:       Yes | No
Description: This key disables the Security Identification (SID) 
             modification code. Set this key to Yes to disable the SID 
             modification code. You might use this value if the computer 
             is to be preconfigured with system services and access (ACL) 
             permissions. This allows a system integrator or administrator
             to preconfigure a computer and set the computer name, 
             administrator password, and other settings at the final 
             location.

             NOTE: Do not use this key if you plan to duplicate the 
             system.
				

脚本文件示例

下面的示例文件是 Windows NT 4.0 最小安装向导脚本的示例:
   [NT4Preinstall]
   OemSkipEula = Yes
   ProductID = 123-4567890
   FullName = "Sample Company User"
   OrgName = "Sample Company Inc."
   ComputerName = "auto"
   AdminPassword = "password"
				

Sysprep.exe 命令行开关

Sysprep 支持以下命令行开关:
Switch:      <filename>
Description: Instructs the Windows NT 4.0 Mini-Setup wizard to use the 
             settings in the specified script file automatically. For 
             example, the following command specifies that the Mini-Setup 
             wizard should use the settings in the Nt4setup.inf file:

                sysprep nt4setup.inf

             NOTE: There is no dash preceding the script file name.

Switch:      -quiet
Description: Instructs Sysprep to run without displaying a warning dialog 
             box. For example, the following command specifies that only 
             the license information screen should be displayed:

                sysprep -quiet

             The warning message stating that the computer is going to be 
             prepared for disk imaging and automatically shut down is not 
             displayed, and the computer shuts down automatically.

             NOTE: The preceding dash is required.

Switch:      -reboot
Description: Instructs Sysprep to automatically restart the computer. For 
             example, the following command specifies that the computer is
             restarted automatically instead of being shut down after 
             Sysprep has finished:

                sysprep -reboot

             You should not use this switch if you are preparing the 
             computer for disk imaging. This switch may be useful if you 
             plan to automate a test process designed to run after Sysprep
             has finished.

             NOTE: The preceding dash is required.

Switch:      -defeat
Description: Instructs Sysprep to run on a computer that has retail 
             versions of Windows NT 4.0 Workstation or Windows NT 4.0 
             Server and Microsoft Office 97. Normally, Sysprep requires
             a Microsoft Select Volume CD-ROM or an OEM (Original 
             Equipment Manufacturer) CD-ROM installation to run. 
				

下面的示例 Sysprep 命令使用所有命令行开关:

重新系统预备 setupscript.inf-安静-启动-失效

参考

Sysprep 有关的其他信息,请复查 Sysprep.doc 文件中包含的 Sysprep 工具。

属性

文章编号: 196667 - 最后修改: 2002年9月9日 - 修订: 1.0
这篇文章中的信息适用于:
  • Microsoft Windows NT Workstation 4.0 开发员版
  • Microsoft Windows NT Server 4.0 Standard Edition
关键字:?
kbmt kbinfo KB196667 KbMtzh
机器翻译
注意:这篇文章是由无人工介入的微软自动的机器翻译软件翻译完成。微软很高兴能同时提供给您由人工翻译的和由机器翻译的文章, 以使您能使用您的语言访问所有的知识库文章。然而由机器翻译的文章并不总是完美的。它可能存在词汇,语法或文法的问题,就像是一个外国人在说中文时总是可能犯这样的错误。虽然我们经常升级机器翻译软件以提高翻译质量,但是我们不保证机器翻译的正确度,也不对由于内容的误译或者客户对它的错误使用所引起的任何直接的, 或间接的可能的问题负责。
点击这里察看该文章的英文版: 196667
Microsoft和/或其各供应商对于为任何目的而在本服务器上发布的文件及有关图形所含信息的适用性,不作任何声明。 所有该等文件及有关图形均"依样"提供,而不带任何性质的保证。Microsoft和/或其各供应商特此声明,对所有与该等信息有关的保证和条件不负任何责任,该等保证和条件包括关于适销性、符合特定用途、所有权和非侵权的所有默示保证和条件。在任何情况下,在由于使用或运行本服务器上的信息所引起的或与该等使用或运行有关的诉讼中,Microsoft和/或其各供应商就因丧失使用、数据或利润所导致的任何特别的、间接的、衍生性的损害或任何因使用而丧失所导致的之损害、数据或利润不负任何责任。

提供反馈

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com