隐藏在答案文件中的敏感数据Hide Sensitive Data in an Answer File

Windows® 系统映像管理器 (Windows SIM) 可用于隐藏管理员帐户,以及在本地系统上,在答案文件中的任何其他用户帐户的密码。You can use Windows® System Image Manager (Windows SIM) to hide the password for the administrator account, and for any other user accounts on the local system, in an answer file. 答案文件中隐藏密码可以防止用户阅读答案文件并识别本地帐户的密码。Hiding passwords in an answer file prevents users from reading the answer file and identifying passwords for local accounts.

您可以隐藏的设置包括:The settings that you can hide include the following:

  • Microsoft-Windows-Shell-Setup | AutoLogon | PasswordMicrosoft-Windows-Shell-Setup | AutoLogon | Password
  • Microsoft-Windows-Shell-Setup | UserAccounts | AdministratorPasswordMicrosoft-Windows-Shell-Setup | UserAccounts | AdministratorPassword
  • Microsoft-Windows-Shell-Setup | UserAccounts | LocalAccounts | LocalAccount | PasswordMicrosoft-Windows-Shell-Setup | UserAccounts | LocalAccounts | LocalAccount | Password

此选项只会隐藏在答案文件中的密码。This option only hides the passwords in an answer file. 它不提供加密或其他安全优势。It does not provide encryption or other security benefits. 请考虑将答案文件作为敏感数据,并谨慎授予对答案文件的访问权限。Consider answer files as sensitive data and be careful about authorizing access to your answer files.

备注

您可以隐藏仅在答案文件中的本地帐户密码。You can hide only local account passwords in an answer file. 域密码、 产品密钥和其他敏感数据可能仍将以明文形式在答案文件中可用。Domain passwords, product keys, and other sensitive data may still be available as clear text in an answer file.

若要隐藏在答案文件中的帐户密码:To hide account passwords in an answer file:

  1. 打开 Windows SIM。Open Windows SIM.

  2. 打开 Windows 映像。Open a Windows image. 有关详细信息,请参阅打开 Windows 映像或编录文件For more information, see Open a Windows Image or Catalog File.

  3. 创建或打开答案文件。Create or open an answer file. 有关详细信息,请参阅创建或打开答案文件For more information, see Create or Open an Answer File.

  4. 将以下密码设置之一添加到答案文件:Add one of the following password settings to your answer file:

    • Microsoft-Windows-Shell-Setup | AutoLogon | PasswordMicrosoft-Windows-Shell-Setup | AutoLogon | Password
    • Microsoft-Windows-Shell-Setup | UserAccounts | AdministratorPasswordMicrosoft-Windows-Shell-Setup | UserAccounts | AdministratorPassword
    • Microsoft-Windows-Shell-Setup | UserAccounts | LocalAccounts | LocalAccount | PasswordMicrosoft-Windows-Shell-Setup | UserAccounts | LocalAccounts | LocalAccount | Password
  5. 将值添加到一个或多个密码设置。Add a value to one or more of the password settings. 将组件添加到答案文件中指定的配置阶段。The component is added to the answer file in the specified configuration pass.

  6. 工具菜单上,单击隐藏敏感数据On the Tools menu, click Hide Sensitive Data. 这可确保保存答案文件后,将隐藏密码信息。This makes sure that when the answer file is saved, the password information will be hidden.

  7. 保存答案文件并关闭 Windows SIM。Save the answer file and close Windows SIM. 答案文件将类似于下面的示例。The answer file will resemble the following example.

       <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <UserAccounts>
             <LocalAccounts>
                <LocalAccount wcm:action="add">
                   <Password>
                      <Value>UABhAHMAcwB3AG8AcgBkADEAMgAzADQANgBQAGEAcwBzAHcAbwByAGQA</Value>
                      <PlainText>false</PlainText>
                   </Password>
                   <Description>MyAccountName</Description>
                   <DisplayName>MyAccountName</DisplayName>
                   <Group>FabrikamGroup</Group>
                   <Name>MyAccountName</Name>
                </LocalAccount>
             </LocalAccounts>
          </UserAccounts>
       </component>
    

备注

添加了 Windows SIM纯文本到答案文件的元素。Windows SIM adds the PlainText element to the answer file. 在 Windows 安装过程中使用此元素以指示密码为纯文本。This element is used during Windows Setup to indicate whether or not the password is in plain text.

Windows 系统映像管理器操作指南主题Windows System Image Manager How-to Topics

创建或打开答案文件Create or Open an Answer File

在答案文件中配置的组件和设置Configure Components and Settings in an Answer File

验证答案文件Validate an Answer File

将设备驱动程序路径添加到答案文件Add a Device Driver Path to an Answer File

将包添加到答案文件Add a Package to an Answer File

将自定义命令添加到答案文件Add a Custom Command to an Answer File

在 Windows SIM 中查找组件、 设置或包Find a Component, Setting, or Package in Windows SIM