VMware Cloud Community
rogeraraj
Contributor
Contributor

Execute powershell script inside VM

Hello,

I have a workflow that creates a new VM and I would like to run a powershell script inside this VM.  Is there anyway to accomplish that?

Please any idea would help me a lot!

Thanks

Tags (2)
0 Kudos
1 Reply
tschoergez
Leadership
Leadership

You can either use the powershell plugin, and connect the new VM as target host, or (likely easier to achieve) use the Guest Operations API.

See this package to get started comfortably for Guest Operations: https://communities.vmware.com/docs/DOC-25474

For Powershell plugin details, check these articles: http://kaloferov.com/blog/category/vmware/vco/powershell-plugin/

Cheers,

Joerg

0 Kudos