Invoke shell commands on multiple VMs simultaneously

Written for PowerActions to use Invoke-VMScript. Invoke shell commands on multiple VMs simultaneously through
PowerActions. Script prompts for guest OS credentials (must be the same credentials for all of the selected
VM's, then it prompts for the command to execute. Output is returned in the console window. Each time you run
a command is a new session to the VMs. If you want to chain commands togetherit must be done in a single scriptblock
as it is in the invoke-vmscript Powercli command.

PowerActions

A project to help share common scripts in the PowerActions web client fling.

To automatically download these scripts please use the following script on your PowerActions PowerShell host:

https://gist.github.com/alanrenouf/3f262b6c787ee26f7381

Please add your scripts so we can share the solutions!


Sign in to be able to add comments.

Comments 0