隱藏回應檔案中的機密資料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