Citrix Virtual Apps and Desktops

本地 Active Directory 服务帐户

本地 Active Directory 服务帐户是用于存储特权域用户帐户的用户名和密码的容器。 用户帐户必须具有足够的权限来管理 Active Directory 中的计算机帐户。 Machine Creation Services 可以使用此服务帐户执行与计算机帐户相关的操作,而无需每次都输入域凭据。

创建本地 Active Directory 服务帐户

使用 Studio 或 PowerShell 创建本地 Active Directory 服务帐户。

必备条件

要创建本地 Active Directory 服务帐户,请确保完成以下任务:

  • 在您的 Active Directory 中创建一个域用户帐户,该帐户具有足够的权限,能够创建、更新和删除您的 Active Directory 或特定 OU 中的计算机对象。

使用 Web Studio

  1. DaaS 磁贴中,单击管理
  2. 在左侧窗格中,选择管理员
  3. 服务帐户选项卡中,单击创建服务帐户
  4. 身份类型页面上,选择本地 Active Directory。 (这是可选页面。)单击下一步
  5. 凭据页面上,单击输入凭据以提供您想要用作服务帐户的特权域用户帐户的用户名和密码。
  6. 设置密码过期日期或者将其保留为永不过期。
  7. 为此服务帐户选择一个或多个作用域。
  8. 输入服务帐户的友好名称和说明(可选)。
  9. 单击完成完成创建。

使用 PowerShell

可以使用 PowerShell 命令创建本地 Active Directory 服务。 例如:

  $credential = ConvertTo-SecureString -String $password -AsPlainText -Force
New-AcctServiceAccount -IdentityProviderType ActiveDirectory -IdentityProviderIdentifier test.local -AccountId test\svcacct_mcs -AccountSecret $credential -SecretExpiryTime 2030/08/15 -DisplayName 'scvacct_mcs' -Description 'Service account for test.local'
<!--NeedCopy-->

注意:

$password 为提供的域用户帐户的匹配密码。

执行与计算机标识相关的操作

将 Active Directory 或基于混合 Azure AD 的标识池与服务帐户关联后,可以执行各种与计算机标识相关的操作,而无需输入域凭据。

  • 使用服务帐户创建新身份帐户

       New-AcctADAccount -IdentityPoolName MyPool -Count 2 -UseServiceAccount
     <!--NeedCopy-->
    
  • 使用服务帐户修复身份帐户

       Repair-AcctADAccount -ADAccountName "Domain\account","Domain\account2" -UseServiceAccount
     <!--NeedCopy-->
    
  • 使用服务帐户删除身份帐户

       Remove-AcctADAccount -IdentityPoolName MyPool -RemovalOption Delete -ADAccountName "Domain\account","domain\account2" -UserServiceAccount
     <!--NeedCopy-->
    

接下来要去哪里

本地 Active Directory 服务帐户