名稱 (useraccounts--windows-shell-設定-domainaccounts-domainaccountlist-domainaccount-name) Name (microsoft-windows-shell-setup-useraccounts-domainaccounts-domainaccountlist-domainaccount-name)

Name 指定網域帳戶或安全性群組。Name specifies the domain account or the security group.

Values

名稱Name

指定網域帳戶或安全性群組。Specifies the domain account or the security group. Name 是最大長度為256個字元的字串。Name is a string with a maximum length of 256 characters.

請勿使用下列任何字元: & amp; l:/[] | & amp; lt; & gt; + =;,? \*%@Do not use any of the following characters: "/[]:|<>+=;,?\*%@

某些 Unicode 字元(如表情)會顯示為預留位置字元:?Some Unicode characters such as emoji appear as with the placeholder character: ? (問號) 在命令提示字元中,但在其他位置(例如檔案總管)會正確地顯示。(question mark) in command prompts, but appear correctly in other locations such as File Explorer.

使用 Microsoft 帳戶登入的使用者經常會看到其基礎設定檔路徑與其 firstname/lastname 不符。Users who sign-in with a Microsoft account will frequently see that their underlying profile path does not match their firstname / lastname. 當發生這種情況時,您將會看到下列格式的帳戶: username_001。When this happens, you will see an account in the form: username_001.

這種字串不支援空的元素。This string type does not support empty elements. 請勿為這種字串建立空值。Do not create an empty value for this setting.

有效的設定階段Valid Configuration Passes

auditSystemauditSystem

oobeSystemoobeSystem

父階層Parent Hierarchy

Microsoft-Windows-Shell-設定 | UserAccounts | DomainAccounts | DomainAccountList | DomainAccount | 名稱Microsoft-Windows-Shell-Setup | UserAccounts | DomainAccounts | DomainAccountList | DomainAccount | Name

套用至Applies To

如需此元件支援的支援 Windows 版本與架構清單,請參閱 Microsoft Windows Shell 安裝程式For a 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>
   <DomainAccounts>
      <DomainAccountList wcm:action="add">
         <DomainAccount wcm:action="add">
            <Name>account1</Name>
            <Group>Fabrikam\Group1</Group>
         </DomainAccount>
         <DomainAccount wcm:action="add">
            <Name>account2</Name>
            <Group>Fabrikam\Group2</Group>
         </DomainAccount wcm:action="add">
         <Domain>domain1</Domain>
      </DomainAccountList>
      <DomainAccountList wcm:action="add">
         <DomainAccount wcm:action="add">
            <Name>account3</Name>
            <Group>Fabrikam\Group2</Group>
         </DomainAccount wcm:action="add">
         <Domain>domain2</Domain>
     </DomainAccountList>
   </DomainAccounts>
</UserAccounts>

DomainAccountDomainAccount