Citrix Provisioning

API PowerShellコマンドを使用した信頼されていないドメインでのターゲットデバイスのプロビジョニング

Citrix Provisioning API PowerShellコマンドを使用して、信頼されていないドメインでターゲットデバイスをプロビジョニングできます。パラメーターDomainCredentialsをプロビジョニングコマンドStart-PvsProvisionMachinesおよびStart-PvsProvisionXdMachinesに追加します。

詳細な手順は次のとおりです:

  1. Citrix Provisioning API PowerShellモジュールをインポートします。

    Import-Module "C:\Program Files\Citrix\Provisioning Services\Citrix.ProvisioningServices.dll"
  2. Citrix Provisioning APIサーバーへの接続を確立します。

    Set-PvsApiConnection -PvsServerAddress <server.domain> -PvsServerPort 54324 ` -Domain <domain> -Username <username> -Password <password>
  3. 資格情報を入力して、信頼されていないドメインにマシンアカウントを作成します。

    $targetDeviceDomainCredentials = Get-Credential
  4. Start-PvsProvisionXdMachinesまたはStart-PvsProvisionMachinesDomainCredentialsパラメーターを指定して実行し、ターゲットデバイスをプロビジョニングします。

    注:

    指定したXenDesktopマシンカタログでXenDesktop用のVMをプロビジョニングする場合は、Start-PvsProvisionXdMachinesを実行します。

    • XenDesktopマシンのプロビジョニング:例:

      $provisionMachinesId = Start-PvsProvisionXdMachines ` -DdcAddress <your-ddc-address>` -BootType <your-boot-type> ` -CatalogName <your-catalog-name> ` -CatalogDescription <your-catalog-description> ` -SessionSupport <your-session-support> ` -AllocationType <your-allocation-type> ` -PersistUserChanges <your-persist-user-changes> ` -Scope <your-scope>` -VdaLevel <your-vda-level> ` -XenDesktopHostResource <your-xd-host-resource> ` -HostResourcePassword <your-host-resource-passsword> ` -TemplateName <your-template-name> ` -NetworkPath <your-network-path> ` -StoreId <your-store-id> ` -SiteId <your-site-id> ` -DiskLocatorId <your-disk-locator-id>` -Domain <target-device-domain> ` -OrganizationalUnit <target-device-ou> ` -NamingScheme <your-naming-scheme> ` -VmCount <vm-count> ` -DeviceMemory <device-memory-size> ` -DeviceCpu <device-cpu-count> ` -DeviceWriteCacheSize <device-write-cache-size> ` -NameSuffixType <your-name-suffix-type> ` -CitrixCloud: <is-Citrix-Cloud> ` -DomainCredentials $targetDeviceDomainCredentials
    • VMのプロビジョニング:

      $provisionMachinesId = Start-PvsProvisionMachines ` -HostType <your-host-type> ` -HostAddress <your-host-address> ` -HostUsername <your-host-user-name> ` -HostPassword <your-host-password> ` -TemplateName <your-template-name> ` -StoreId <your-PVS-store-id> ` -SiteId <your-PVS-site-id> ` -CollectionId <your-collection-id> ` -DiskLocatorId <your-disk-locator-id> ` -Domain <target-device-domain> ` -OrganizationalUnit <target-device-ou>` -NamingScheme <your-naming-scheme> ` -VmCount <vm-count> ` -DeviceMemory <device-memory-size> ` -DeviceCpu <device-cpu-count> ` -NameSuffixType <your-name-suffix-type> ` -DomainCredentials $targetDeviceDomainCredentials
  5. プロビジョニングジョブが完了するまで、プロビジョニングの状態を繰り返し照会します。

    Get-PvsProvisioningStatus -ProvisionMachinesConnectionId $provisionMachinesId

    信頼されていないドメイン内のターゲットデバイスのプロビジョニングが完了すると、次の出力が表示されます:

    Cancelled : False CurrentVmPercentComplete : 100 ErrorOccurred : False Message : Machine Provisioning Complete! OverallPercentComplete : 100
API PowerShellコマンドを使用した信頼されていないドメインでのターゲットデバイスのプロビジョニング