Default scripts for suspending and resuming a virtual machine are written to work together. If you disable the script for one of these actions, you must disable the script for the other action as well.

Before you begin

On Linux, Solaris, and FreeBSD guest operating systems, to test, edit, or disable the running of a script, log in as root.

About this task

Important:

You cannot run scripts on Windows NT, Me, Windows 98, and Windows 95 guest operating systems.

Procedure

  1. Open a command prompt or terminal in the guest operating system.
  2. Change to the VMware Tools installation directory.

    Operating System

    Default Path

    Windows

    C:\Program Files\VMware\VMware Tools

    Linux and Solaris

    /usr/sbin

    FreeBSD

    /usr/local/sbin

    Mac OS X

    /Library/Application Support/VMware Tools

  3. Enter the command to disable the script.
    utility-name script script-name disable
    

    Option

    Action

    utility-name (On Windows)

    Use VMwareToolboxCmd.exe.

    utility-name (On Linux, Solaris, and FreeBSD)

    Use vmware-toolbox-cmd.

    script-name

    Use power, resume, suspend, or shutdown.

What to do next

If you disabled the script for suspending a virtual machine, repeat this procedure to disable the script for resuming, or if you disabled the script for resuming, also disable the script for suspending.