VMware Cloud Community
tchiew_a
Enthusiast
Enthusiast

Script to run single/multiple command on all ESX host

Hi, I just started on vitoolkit and try to learn to script to offload some task. One of them is how to I use vitoolskit to initiate command on all y esx host? ie, start/stop services. Thank you.

0 Kudos
1 Reply
LucD
Leadership
Leadership

There is a VITK cmdlet to start/stop a limited set of services.

See .

To run other commands on an ESX server you will need to use something like plink.

It also requires you to configure 'sudo' correctly on the ESX servers.

See for example or


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference