利用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}}