Skip to content
Advertisement

Tag: shell-exec

executing a Powershell script from php

I’m trying to execute a powershell script from PHP, but it does not seem to work. The script ‘newEvent.ps1’ creates an event on the Exchange server. It outputs: If I run powershell.exe C:wampwwwantassetspsnewEvent.ps1 on the command-line, it works fine. This is the first time im attempting something like this. I ran Set-ExecutionPolicy RemoteSigned -Scope LocalMachine but it still gives me

Advertisement