[英]Update-Tools Powercli Error when try update VMware in Powershell
I am trying to update VMware tools for a bunch of VMs by below command 我正在尝试通过以下命令为一堆VM更新VMware工具
Foreach($vm in $vms )
{ Get-VM $vm | Mount-Tools
Get-VM $vm | Update-Tools -Noreboot
Get-VM $vm | Dismount-Tools
But i am getting below error: 但我得到以下错误:
The Operation of the entity VirtualMachine-vm-12573 with following message:"Error Upgarding vmware Tools"
带有以下消息的实体VirtualMachine-vm-12573的操作:“错误升级vmware工具”
If you're just updating tools, the Mount
and Dismount
commands should not be necessary. 如果您只是更新工具,则不需要
Mount
和Dismount
命令。
Try the following: 请尝试以下操作:
Foreach($vm in $vms ) {Get-VM $vm | Update-Tools -Noreboot}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.