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:
- In the Virtual Guest Package editor, select the Run Once Script tab.
- Click the browse button. The Edit panel is displayed.
- 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,
You can specify only OS commands on the Run Once Script panel; there is no support for executing multi-line scripts.