密码 (useraccounts-localaccounts-localaccount-password) Password (microsoft-windows-shell-setup-useraccounts-localaccounts-localaccount-password)

Password 指定要在安装过程中创建的 LocalAccount 的密码,以及是否在无人参与安装答案文件中隐藏密码。Password specifies the password for a LocalAccount to be created during installation and whether the password is hidden in the unattended installation answer file.

子元素Child Elements

设置Setting 说明Description
PlainTextPlainText 指定是否在答案文件中隐藏 LocalAccount 密码。Specifies whether the LocalAccount password is hidden in the answer file.
Value 指定 LocalAccount 密码。Specifies the LocalAccount password.

有效的配置阶段Valid Configuration Passes

auditSystemauditSystem

oobeSystemoobeSystem

父层次结构Parent Hierarchy

Microsoft-Shell-安装程序 | UserAccounts | LocalAccounts | LocalAccount | 密码Microsoft-Windows-Shell-Setup | UserAccounts | LocalAccounts | LocalAccount | Password

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-Windows Shell 设置For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML 示例XML Example

以下 XML 输出显示了如何设置 UserAccountsThe following XML output shows how to set UserAccounts.

<UserAccounts>
   <LocalAccounts>
      <LocalAccount wcm:action="add">
         <Password>
            <Value>cAB3AFAAYQBzAHMAdwBvAHIAZAA</Value>
            <PlainText>false</PlainText>
         </Password>
         <Description>Test account</Description>
         <DisplayName>Admin/Power User Account</DisplayName>
         <Group>Administrators;Power Users</Group>
         <Name>Test1</Name>
      </LocalAccount>
      <LocalAccount wcm:action="add">
         <Password>
            <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
            <PlainText>false</PlainText>
         </Password>
         <Description>For testing</Description>
         <DisplayName>Admin Account</DisplayName>
         <Group>Administrators</Group>
         <Name>Test2</Name>
      </LocalAccount>
   </LocalAccounts>
</UserAccounts>

LocalAccountLocalAccount