-
-
使用 API PowerShell 命令在不可信域中预配目标设备
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
使用 API PowerShell 命令在不可信域中预配目标设备
可以使用 Citrix Provisioning API PowerShell 命令在不可信域中预配目标设备。将参数 DomainCredentials
添加到预配命令 Start-PvsProvisionMachines
和 Start-PvsProvisionXdMachines
中。
详细步骤如下所示:
-
导入 Citrix Provisioning API PowerShell 模块。
Import-Module "C:\Program Files\Citrix\Provisioning Services\Citrix.ProvisioningServices.dll" <!--NeedCopy-->
-
建立与 Citrix Provisioning API 服务器的连接。
Set-PvsApiConnection -PvsServerAddress <server.domain> -PvsServerPort 54324 ` -Domain <domain> -Username <username> -Password <password> <!--NeedCopy-->
-
输入用于在不可信域中创建计算机帐户的凭据。
$targetDeviceDomainCredentials = Get-Credential <!--NeedCopy-->
-
运行带
DomainCredentials
参数的Start-PvsProvisionXdMachines
或Start-PvsProvisionMachines
以预配目标设备。注意:
如果要在指定的 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 <!--NeedCopy-->
-
预配 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 <!--NeedCopy-->
-
-
重复查询预配状态,直到预配任务完成。
Get-PvsProvisioningStatus -ProvisionMachinesConnectionId $provisionMachinesId <!--NeedCopy-->
在不可信域中完成目标设备的预配后,您将获得以下输出:
Cancelled : False CurrentVmPercentComplete : 100 ErrorOccurred : False Message : Machine Provisioning Complete! OverallPercentComplete : 100 <!--NeedCopy-->
共享
共享
在本文中
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.