If I run: 

```
$output = shell_exec('powershell "get-service "dhcp""'); 

```

I get perfect output of the service dhcp showing running but if I run: 

```
$output = shell_exec('powershell "get-user "testing""'); 

```

I get nothing. 

I don't see any difference in what Im doing here - and why get-service would work but get-user would not. If I run it in cmd it works perfectly. Any ideas?

I believe the issues might be that apache is running the command and does not have permissions. Could this be the case? Does apache run as a different user? If so it doesn't have access to do this.