首页 > 系统服务 > 详细

[PowerShell] VMware.PowerCLI安装

时间:2021-08-13 10:15:23      阅读:11      评论:0      收藏:0      [点我收藏+]

1. 查看当前素有的版本

PS /root> Find-Module -Repository PSGallery -Name VMware.PowerCLI -AllVersions | ft -AutoSize

Version         Name            Repository Description
-------         ----            ---------- -----------
12.3.0.17860403 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
12.2.0.17538434 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
12.1.0.17009493 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
12.0.0.15947286 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
11.5.0.14912921 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
11.4.0.14413515 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
11.3.0.13990089 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
11.2.0.12780525 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
11.2.0.12483598 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
11.1.0.11289667 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
11.0.0.10380590 VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
10.2.0.9372002  VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
10.1.1.8827524  VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
10.1.0.8403314  VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
10.0.0.7895300  VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
6.5.4.7155375   VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
6.5.3.6870460   VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
6.5.2.6268016   VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI
6.5.1.5377412   VMware.PowerCLI PSGallery  This Windows PowerShell module contains VMware.PowerCLI

2. 创建脚本目录

mkdir /opt/powercli

3. 安装

PS /root> Save-Module -Name VMware.PowerCLI -RequiredVersion 12.1.0.17009493 -Path /opt/powercli

[PowerShell] VMware.PowerCLI安装

原文:https://www.cnblogs.com/leoshi/p/15135827.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!