Installation guide
www.vmware.com
186
VMware ESX Server Administration Guide
Choosing Scripts for VMware Tools to Run During Power State Changes
Through VMware Tools, you can run scripts that execute when you power on, power
off, suspend or resume the virtual machine.
A default script for each power state is included in VMware Tools. These scripts are
located in the guest operating system in C:\Program Files\VMware.
For each power state, you can use the default script or you can substitute a script you
created. In addition, you can test a script or disable the running of a script. Complete
the following steps.
1. In the Script Event list, select the power operation with which to associate the
script.
2. Do one of the following:
• To select a different script, click Custom Script, then click Browse and select
the new script.
• To edit a script, click Edit. The script opens in your default editor. Make your
changes there.
• To test the script, click Run Now.
When You … This Default Script Runs
Suspend the guest operating system suspend-vm-default.bat
Resume the guest operating system resume-vm-default.bat
Shut down the guest operating system poweroff-vm-default.bat
Power on the guest operating system poweron-vm-default.bat