Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Failed while executing QueryAD.ps1 (Access denied)

bijender1
Tera Contributor

Hi All,

I have created a account in service-now with Mid role and used this account to install Mid.

and added the same mid server in Default MID Server to use for Orchestration Activities.

When i test the connection , it shows the below error. Kindly advise.

find_real_file.png

 

4 REPLIES 4

Tuna
Giga Guru

It could be that the Windows System Account does not have sufficient rights to invoke this command. Are you using this in a wf_element_activity?

bijender1
Tera Contributor

Hi Tuna,

I have used local Admin account to run mid server service. i am not sure about Wf_element_activity.

May you please help me locating that ( screenshot ). I can share the screenshot too if required.

Regards,
Bijender

Tuna
Giga Guru

If you do not know wf_element_activity you probably are not using it. Just type it in the aplication navigator like this: wf_element_activity.list 

find_real_file.png

bijender1
Tera Contributor

Hi Tuna,

Thanks i checked , i tested QueryAD.ps1 as it was showing in agent logs, below is the screenshot. however, when i tested, it ask me to type few information, i am not sure what values i have to put so i tested without any input. it shows below error. , kindly advise