摘要:
1. 循环遍历 foreach $a='a','b','c' foreach ($i in $a) { echo $i } a b c 2. 循环遍历 foreach-object $a | ForEach-Object{ echo $_ } a b c 3. for循环 for ($counter 阅读全文
posted @ 2021-08-13 14:04
LeoShi2020
阅读(1065)
评论(0)
推荐(0)
摘要:
1. 查看虚拟机列表 PS /root> Get-VM Name PowerState Num CPUs MemoryGB mysql数据库测试 PoweredOn 8 32.000 中间件测试服务器 PoweredOn 8 16.000 test01 PoweredOn 2 4.000 VMwar 阅读全文
posted @ 2021-08-13 12:58
LeoShi2020
阅读(1065)
评论(0)
推荐(0)
摘要:
1. 连接ESXi服务器 Connect-VIServer -Server <IPAddress> -Protocol <https> -User <root> -Password <pass> PS /root> Connect-VIServer -Server 10.1.1.1 Specify 阅读全文
posted @ 2021-08-13 10:53
LeoShi2020
阅读(351)
评论(0)
推荐(0)
摘要:
1. 查看当前素有的版本 PS /root> Find-Module -Repository PSGallery -Name VMware.PowerCLI -AllVersions | ft -AutoSize Version Name Repository Description 12.3.0. 阅读全文
posted @ 2021-08-13 09:01
LeoShi2020
阅读(807)
评论(0)
推荐(0)
浙公网安备 33010602011771号