Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell vs AD vs PHP

$
0
0
We have a 2008 domain and are running ADWS http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=2852 I am running powershell from a php page using shell_exec under iis. When i use the import-module ActiveDirectory in the script it fails with the error:

    WARNING: Error initializing default drive: 'Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.'.

    Get-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.

Running this script manually works fine, just when its called via php it fails, any clues greatfully received

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>