纯文本 (useraccounts-localaccounts-localaccount-纯文本) PlainText (microsoft-windows-shell-setup-useraccounts-localaccounts-localaccount-password-plaintext)

PlainText 指定是否在无人参与安装答案文件中隐藏 LocalAccount/Password/PlainText specifies whether the LocalAccount/Password/Value is hidden in the unattended installation answer file.

注意Note
此设置仅可用于隐藏本地帐户的密码。You can use this setting only to hide the passwords for local accounts . 不隐藏域帐户密码。Domain account passwords are not hidden.

不能直接设置此值。You cannot set this value directly. 在 "工具" 菜单上选择 "隐藏敏感数据" 可以使用 PlainText 答案文件中的设置来隐藏所有密码。Select Hide sensitive data on the Tools menu to hide all passwords with a PlainText setting in your answer file.

Values

truetrue

指定密码以纯文本形式出现在答案文件中。Specifies that the password appears in plain text in the answer file. 这是默认值。This is the default value.

falsefalse

指定在答案文件中隐藏密码。Specifies that the password is hidden in the answer file.

注意Note
此元素显示在 Windows 系统管理器的 "属性" 窗格中的 "设置" 栏上方。This element appears above the Settings bar in the Properties pane of Windows System Manager. 即使选择了 "隐藏敏感数据",它在用户界面 (UI) 中始终显示为 trueIt always appears as true in the user interface (UI), even if you have selected Hide sensitive data.

有效的配置阶段Valid Configuration Passes

auditSystemauditSystem

oobeSystemoobeSystem

父层次结构Parent Hierarchy

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

适用于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>

密码Password