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!
Citrix.Image.Uploader PowerShell 模块
本文档介绍了安装、更新和卸载 Citrix.Image.Uploader PowerShell 模块的基本步骤。此模块提供将 VHD(x) 从 SMB 文件共享上传到指定目标环境的功能。
有关关联 cmdlet 及其使用示例的更多信息,请参阅以下文档。
安装库和模块
映像可移植性使用 Microsoft PowerShell 库中的库来驱动可移植性操作。
运行以下 PowerShell 命令以安装最新版本的 Citrix.Image.Uploader 模块:
Install-Module -Name "Citrix.Image.Uploader" -Scope CurrentUser
<!--NeedCopy-->
运行以下 PowerShell 命令以安装特定版本的 Citrix.Image.Uploader 模块:
Install-Module -Name "Citrix.Image.Uploader" -RequiredVersion 1.0.0 -Scope CurrentUser
<!--NeedCopy-->
通过运行以下命令确认模块已成功安装:
Get-InstalledModule -Name "Citrix.Image.Uploader"
<!--NeedCopy-->
此命令返回类似于以下内容的输出:
| 名称 | 存储库 | 描述 |
|---|---|---|
| Citrix.Image.Uploader | PSGallery | 用于将 VHD(x) 上传到 Azure 存储帐户、AWS 或 GCP 并获取有关 VHD(x) 信息的命令 |
将模块更新到最新版本
运行以下命令以将模块更新到最新版本:
Update-Module -Name "Citrix.Image.Uploader" -Force
<!--NeedCopy-->
运行以下命令以更新到特定版本的 Citrix.Image.Uploader 模块:
Update-Module -Name "Citrix.Image.Uploader" -RequiredVersion 1.0.0
<!--NeedCopy-->
安装特定于平台的第三方组件
映像可移植性 PowerShell 模块不安装第三方依赖项。因此,您可以将安装限制为您所针对的平台。如果您正在使用以下平台之一,请按照相关说明安装平台依赖项。
注意:
仅在使用我们的 Citrix.Image.Uploader PowerShell 模块时才需要安装第三方组件。运行导出或准备任务不需要这些组件。
Azure
如果您要将映像上传到 Azure,请下载并安装 Azure 命令行实用程序,然后运行这些命令以安装所需的 Azure PowerShell 模块:
Install-Module -Name Az.Accounts -Scope CurrentUser -AllowClobber -Force
Install-Module -Name Az.Compute -Scope CurrentUser -AllowClobber –Force
<!--NeedCopy-->
卸载库和模块
运行以下命令以卸载模块:
Get-InstalledModule -Name "Citrix.Image.Uploader" | Uninstall-Module
<!--NeedCopy-->
运行以下命令以卸载特定版本的 Citrix.Image.Uploader 模块:
Uninstall-Module -Name "Citrix.Image.Uploader" -RequiredVersion 1.0.0
<!--NeedCopy-->
注意:
卸载 IPS 模块时,第三方脚本和组件不会自动删除。
基本用法和示例
模块安装后,您可以通过运行以下命令查看 Citrix.Image.Uploader PowerShell 模块中的可用命令:
Get-Command -Module "Citrix.Image.Uploader"
<!--NeedCopy-->
要获取有关特定命令的详细信息(包括其说明和使用示例),请使用:
Get-Help <Command-Name> -Full
<!--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.