Studying the interaction of Php with Powershell Try the simplest script:
<?php
$query = shell_exec("powershell.exe -File E:\test.ps1");
echo $query;
?>
In the script test.ps1 - for example "Test-Connection Server"
Need to the answer in Powershell returned to the page Php, but in response to a white paper... Please tell me some solution for this problem.. do Not have shell_exec. There may be other options?