VMware Cloud Community
venky_kvr
Contributor
Contributor

how to execute powercli commands from php

I don't know how to execute powercli commands from php and get result in webpage. give me step by step process.

3 Replies
LucD
Leadership
Leadership

You can start with Executing PowerShell using PHP and IIS

For running PowerCLI from a PHP page have a look at VMware: run PowerCLI on Android using a PHP back-end


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

venky_kvr
Contributor
Contributor

Hi LUCD,

It's working thank you.

How to pass one or more commands from php. Please give me an example.

0 Kudos
Sudarshan_Bhart
Enthusiast
Enthusiast

You can make a script and call it using Shell_Exec() and Echo the output on webpage.

0 Kudos