Book Image

Learning PowerCLI for VMware VSphere

By : Robert van den Nieuwendijk
Book Image

Learning PowerCLI for VMware VSphere

By: Robert van den Nieuwendijk

Overview of this book

Table of Contents (17 chapters)
Learning PowerCLI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Updating the VMware Tools


When there is a new version of the vSphere ESXi software, it normally comes with a new version of the VMware Tools. There are two methods of updating the VMware Tools in a guest operating system:

  • Use the Update-Tools cmdlet

  • Enable the Check and upgrade VMware Tools before each power on checkbox and reboot the virtual machine

In this section, we will discuss both options.

In the following screenshot of the vSphere Web Client, you will see the VM Options tab in the Edit Settings window for the VM2 virtual machine. The Check and upgrade VMware Tools before each power on checkbox is enabled.

Using the Update-Tools cmdlet

The Update-Tools cmdlet will update the VMware Tools in a guest operating system. The syntax of this cmdlet is:

Update-Tools [-NoReboot] [-RunAsync] [[-Guest] <VMGuest[]>] [<CommonParameters>]
Update-Tools [-NoReboot] [-RunAsync] [[-VM] <VirtualMachine[]>] [[-Server] <VIServer[]>] [<CommonParameters>]

You can use the first parameter...