利用PowerCLI不重启系统更新VMware Tools

1、为Cluster里的所有VM升级VMware Tools:

Get-Cluster "Cluster_Name" | Get-VM | Update-Tools -NoReboot

2、升级指定文件夹下VM的VMware Tools:

Get-Cluster "Cluster_Name" | Get-Folder "Folder_name" | Get-VM | Update-Tools -NoReboot

3、升级选定虚拟机的VMware Tools:

Get-Cluster "Cluster_Name" | Get-VM "VM_Name" | Update-Tools -NoReboot

4、查看虚拟机的VMware Tools版本:

Get-View -ViewType VirtualMachine | Select VM_Name,@{Name="ToolsVersion";Expression={$_.config.tools.toolsVersion}}

posted on 2015-08-18 12:59  清风斜阳  阅读(959)  评论(0编辑  收藏  举报

导航