Unable to run dsquery from uipath

Hello,

i need to run one dsquery from cmd using uipath.
when i am running query manually using cmd as administrator and without administrator it is working fine . cehck bellow ss.
2

but when i am running same query using cmd through uipath it is showing me below error.
1

Kindly help me with the same
@Atul_Rai @Latika10011740 @shyam.sankar

Hello @Mathkar_kunal ,

The path of in the second screen shot seems to be different from the first one.

Are you sure that you can run the dsquery command manually from the extended path:

image

Would it be possible for the Robot to do a cd to this path first:

image

And then run the dsquery command from that path?

Trying to remove the variations first might help drill down to the actual problem.

1 Like

Hi,

It seems 32bit/64bit matter.
Can you try to use the following in bat file which is called by UiPath?

C:\windows\sysnative\dsquery.exe

Regards,

1 Like

Executed using run and working fine now

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.