VMware Cloud Community
RanjnaAggarwal
VMware Employee
VMware Employee

Vmware Tools Scripts Problem

I kept some batch file as the vmware tools scripts in the vmware tools folder under the program files i linked that with vm operation like poweron from the notification area icon from the scripts tab but still it is not working. if Anyone knew the solution please share their solution with me.

Regards, Ranjna Aggarwal
Reply
0 Kudos
7 Replies
beckham007fifa

could you please clarify the question,

i linked that with vm operation like poweron from the notification area icon

Regards, ABFS
Reply
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

How can i link the custom vmware tools scripts with a vm?

Regards, Ranjna Aggarwal
Reply
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

anyone any idea?

Regards, Ranjna Aggarwal
Reply
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

anyone?

Regards, Ranjna Aggarwal
Reply
0 Kudos
rickardnobel
Champion
Champion

Ranjna Aggarwal wrote:

How can i link the custom vmware tools scripts with a vm?

Inside the VM, open the VMware tools icon and use the scripts tab:

tools-script.PNG

Point to your own custom script in any folder.

My VMware blog: www.rickardnobel.se
Reply
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

have you checked it? because i did the same and didn't work.

Regards, Ranjna Aggarwal
Reply
0 Kudos
margol
Contributor
Contributor

You seem to need to use the command line in workstation 9...

The tool exists at %PROGRAMFILES%\VMWare\VMWare Tools\VMwareToolboxCmd.exe

There are 4 types of scripts:

power

shutdown

resume

suspend

You can see the current script used by running (replace <type> with thetype from above)

VMwareToolboxCmd.exe scripts <type> current

You can enable/disable the script by using

VMwareToolboxCmd.exe scripts <type> enable

or

VMwareToolboxCmd.exe scripts <type> disable

You can set a new one by using

VMwareToolboxCmd.exe scripts <type> set <newpath>

One important note - the "enable" subcommand will have a side-effect of resetting the script to the default location, so if you have a custom script, remember to do a "set" after "enable"!

Reply
0 Kudos