Hey guys,
Having some scripts that install some apps and provisions AD SQL and SharePoint and one main script that starts in background and calls my scripts. One of the scripts creates some AD accounts and have the import-module activedirectory. When I start the script itself it completes successfully. But when I call that script from the main script it fails with "Unable to find a default server with Active Directory Web Services running".
At first I though it could be because I run the Main script with the Local Service Account which is a member of the Local Admins but I made some debugging and if I log on to my machine and start the Main script with the Admin account it fails with the same error.
Any ideas what can it be and how to resolve it?
Thanks!
KR
Ognyan