Run Once Script


The Run Once Script panel lets you specify optional RunOnce commands in a VMware Virtual Guest Package for VMware Windows-based virtual machines created using a template or from existing Virtual Machines.

To add a RunOnce command to a Virtual Guest Package, do the following:

  1. In the Virtual Guest Package editor, select the Run Once Script tab.
  2. Click the browse button. The Edit panel is displayed.
  3. Do one of the following:
    • Enter the RunOnce command in the edit window.
    • Click Import to import the command from a script.
    • Click OK.

The RunOnce commands you specify run after the guest operating system starts, which is in "logged on" mode with Administrator credentials. If you do not want the virtual machine logged on automatically, then add a reboot command to the end of the run once command list (for example, shutdown /r).

Note

You can specify only OS commands on the Run Once Script panel; there is no support for executing multi-line scripts.

Where to go from here

Post-VM-creation-configuration

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*