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
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